Function at 0x4ded70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x524580
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x566148]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa8]
push 0x20
mov esi, ecx
push 0xe
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], ebx
call fcn.004d65f0
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
sar ecx, 1
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
sar ecx, 1
shr ecx, 1
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
sar ecx, 1
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x14], ecx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0x18], edx
mov edi, dword [esi]
test dword [edi + 0x18], 0x100000
je 0x4dee3a
mov edi, dword [esi + 0x34]
mov ebp, edi
and ebp, ecx
cmp ebp, edi
je 0x4dee14
mov edi, dword [esi + 0x38]
mov ebp, edi
and ebp, ecx
cmp ebp, edi
jne 0x4dee1c
mov edi, dword [esi + 0x3c]
or edi, ecx
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 0x34]
mov edi, ecx
and edi, edx
cmp edi, ecx
je 0x4dee32
mov ecx, dword [esi + 0x38]
mov edi, ecx
and edi, edx
cmp edi, ecx
jne 0x4dee3a
mov ecx, dword [esi + 0x3c]
or ecx, edx
mov dword [eax + 0x18], ecx
mov cl, byte [ebx + 0x20]
mov byte [eax + 0x1c], cl
mov cl, byte [ebx + 0x21]
test cl, cl
sete dl
mov byte [eax + 0x1d], dl
mov ecx, dword [esi]
sub eax, dword [ecx + 0x13c]
mov edi, dword [ebx]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
cmp edi, eax
je 0x4def0c
jmp 0x4dee70
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov ecx, dword [esi + 0x138]
xor edx, edx
cmp byte [edi + 1], dl
setne dl
lea ebp, [edx + 2]
mov edx, dword [esi + 0x140]
sub ecx, edx
cmp ecx, ebp
jae 0x4deea6
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, ebp
call fcn.004e6df0
mov eax, dword [esi + 0x140]
lea edx, [eax + ebp]
mov dword [esi + 0x140], edx
mov esi, dword [esp + 0x18]
cmp byte [esi + 0xc], 0
mov edx, dword [esp + 0x18]
mov cl, byte [edi]
mov edx, dword [edx + 4]
je 0x4deed4
mov edx, dword [edx]
movzx ecx, cl
mov cl, byte [ecx + edx + 0x104]
mov byte [eax], cl
mov cl, byte [edi + 1]
test cl, cl
je 0x4deefb
cmp byte [esi + 0xc], 0
mov edx, dword [esi + 4]
je 0x4deef2
mov edx, dword [edx]
movzx ecx, cl
mov cl, byte [ecx + edx + 0x104]
mov byte [eax + 1], cl
mov byte [eax + 2], 0
jmp 0x4deeff
mov byte [eax + 1], 0
add edi, 2
cmp edi, dword [esp + 0x20]
jne 0x4dee70
mov esi, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x20], ebx
cmp esi, ebx
jne 0x4defd5
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x4df75e
jmp 0x4def40
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov al, byte [ebx + 1]
mov esi, dword [esp + 0x18]
lea ecx, [ebx + 1]
mov dword [esp + 0xa0], 7
test al, al
je 0x4df66c
mov cl, byte [ebx]
lea edx, [esp + 0x16]
mov byte [esp + 0x15], al
push edx
mov byte [esp + 0x18], cl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esi + 4]
mov byte [esp + 0x22], 0
call fcn.004dc730
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 8
call fcn.004303f0
mov ebp, 0x10
mov byte [esp + 0xa0], 7
cmp dword [esp + 0x8c], ebp
jb 0x4df6b3
mov edx, dword [esp + 0x78]
push edx
jmp 0x4df6ab
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
mov al, byte [eax + 0xc]
mov dl, byte [esi]
mov bl, byte [esi + 1]
test al, al
je 0x4deff5
mov ecx, dword [ebp]
movzx edx, dl
mov dl, byte [edx + ecx + 0x104]
mov byte [esp + 0x2c], dl
test al, al
je 0x4df00c
mov ecx, dword [ebp]
movzx edx, bl
mov dl, byte [edx + ecx + 0x104]
jmp 0x4df00e
mov dl, bl
mov cl, byte [esi + 3]
mov bl, dl
mov dl, byte [esi + 2]
mov byte [esp + 0x2d], bl
test al, al
je 0x4df02b
mov edi, dword [ebp]
movzx edx, dl
mov dl, byte [edx + edi + 0x104]
mov byte [esp + 0x24], dl
test al, al
je 0x4df042
mov eax, dword [ebp]
movzx ecx, cl
mov al, byte [ecx + eax + 0x104]
jmp 0x4df044
mov al, cl
xor ecx, ecx
add esi, 4
mov edi, 0xf
mov byte [esp + 0x25], al
mov dword [esp + 0x34], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ecx
mov byte [esp + 0x5c], cl
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test dword [ecx + 0x18], 0x200000
mov byte [esp + 0xa0], 1
je 0x4df35b
mov cl, byte [esp + 0x2c]
mov byte [esp + 0x1d], al
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1e], 0
lea eax, [esp + 0x16]
test bl, bl
jne 0x4df0ba
lea eax, [esp + 0x15]
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, ebp
call fcn.004d6da0
mov esi, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov ebp, 0x10
cmp ecx, esi
je 0x4df141
cmp dword [esp + 0x54], ebp
jb 0x4df0f9
mov edx, dword [esp + 0x40]
push edx
call fcn.004e895a
add esp, 4
xor ebx, ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp dword [esi + 0x14], ebp
jae 0x4df121
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.004e9160
add esp, 0xc
jmp 0x4df129
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x50], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x4df143
xor ebx, ebx
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x8c], ebp
jb 0x4df161
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004e895a
add esp, 4
cmp byte [esp + 0x1d], 0
lea eax, [esp + 0x1e]
jne 0x4df170
lea eax, [esp + 0x1d]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004d6da0
mov esi, eax
lea edx, [esp + 0x5c]
mov byte [esp + 0xa0], 3
cmp edx, esi
je 0x4df1f5
cmp dword [esp + 0x70], ebp
jb 0x4df1af
mov eax, dword [esp + 0x5c]
push eax
call fcn.004e895a
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
cmp dword [esi + 0x14], ebp
jae 0x4df1d6
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [esp + 0x60]
push esi
push ecx
call fcn.004e9160
add esp, 0xc
jmp 0x4df1de
mov edx, dword [esi]
mov dword [esp + 0x5c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x70], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x8c], ebp
jb 0x4df213
mov edx, dword [esp + 0x78]
push edx
call fcn.004e895a
add esp, 4
mov esi, dword [esp + 0x50]
cmp esi, ebx
jne 0x4df2ac
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], 1
mov word [esp + 0x78], 0
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x54], ebp
jb 0x4df253
mov eax, dword [esp + 0x40]
push eax
call fcn.004e895a
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
cmp dword [esp + 0x8c], ebp
jae 0x4df286
mov eax, dword [esp + 0x88]
inc eax
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004e9160
add esp, 0xc
jmp 0x4df28e
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ecx
mov byte [esp + 0xa0], 1
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x4df4c5
mov edi, 0xf
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], 1
mov word [esp + 0x78], 0
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x70], ebp
jb 0x4df2f5
mov edx, dword [esp + 0x5c]
push edx
call fcn.004e895a
mov esi, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x8c], ebp
jae 0x4df330
mov eax, dword [esp + 0x88]
inc eax
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004e9160
mov esi, dword [esp + 0x5c]
add esp, 0xc
jmp 0x4df338
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov byte [esp + 0xa0], 1
jmp 0x4df4c5
test bl, bl
je 0x4df3af
mov ecx, dword [esp + 0x2c]
push ecx
push 1
push 0
lea ecx, [esp + 0x4c]
call fcn.004158d0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov ebp, 0x10
mov eax, edx
cmp ecx, ebp
jae 0x4df388
lea eax, [esp + 0x40]
add eax, dword [esp + 0x50]
cmp ecx, ebp
mov ecx, edx
jae 0x4df396
lea ecx, [esp + 0x40]
test eax, eax
je 0x4df39c
sub eax, ecx
mov edx, dword [esp + 0x2d]
push edx
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.004158d0
jmp 0x4df41e
mov al, byte [esp + 0x2c]
mov dword [esp + 0x8c], edi
mov byte [esp + 0x78], al
mov dword [esp + 0x88], 1
mov byte [esp + 0x79], 0
push 2
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0xac], 6
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.004e9160
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov byte [esp + 0xa0], 1
mov ebp, 0x10
cmp byte [esp + 0x25], 0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
mov eax, edx
je 0x4df490
cmp ecx, ebp
jae 0x4df437
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, ebp
mov ecx, edx
jae 0x4df445
lea ecx, [esp + 0x5c]
test eax, eax
je 0x4df44b
sub eax, ecx
mov edx, dword [esp + 0x24]
push edx
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.004158d0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov eax, edx
cmp ecx, ebp
jae 0x4df46e
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, ebp
mov ecx, edx
jae 0x4df47c
lea ecx, [esp + 0x5c]
test eax, eax
jne 0x4df487
mov ecx, dword [esp + 0x25]
push ecx
jmp 0x4df4b1
sub eax, ecx
mov ecx, dword [esp + 0x25]
push ecx
jmp 0x4df4b1
cmp ecx, ebp
jae 0x4df498
lea eax, [esp + 0x5c]
add eax, dword [esp + 0x6c]
cmp ecx, ebp
mov ecx, edx
jae 0x4df4a6
lea ecx, [esp + 0x5c]
test eax, eax
je 0x4df4ac
sub eax, ecx
mov edx, dword [esp + 0x24]
push edx
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.004158d0
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x4df4d3
lea edx, [esp + 0x40]
mov ecx, edi
cmp edi, esi
jb 0x4df4db
mov ecx, esi
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
cmp ebx, ebp
jae 0x4df4eb
lea eax, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.0044fca0
add esp, 0xc
test eax, eax
jne 0x4df50c
cmp edi, esi
jae 0x4df503
or eax, 0xffffffff
jmp 0x4df50a
xor eax, eax
cmp edi, esi
setne al
test eax, eax
sets al
test al, al
jne 0x4df62c
mov eax, dword [esp + 0x18]
lea edi, [edi + esi + 2]
mov esi, dword [eax]
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x138]
sub ecx, eax
cmp ecx, edi
jae 0x4df548
mov edx, edi
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, eax
call fcn.004e6df0
mov ebp, dword [esi + 0x140]
add edi, ebp
mov dword [esi + 0x140], edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov ebx, 0x10
mov edx, eax
cmp ecx, ebx
jae 0x4df56d
lea edx, [esp + 0x40]
mov edi, dword [esp + 0x50]
add edi, edx
cmp ecx, ebx
jae 0x4df57b
lea eax, [esp + 0x40]
mov ecx, ebp
cmp eax, edi
je 0x4df58b
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4df581
mov eax, dword [esp + 0x50]
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x70]
mov edx, eax
cmp ecx, ebx
jae 0x4df5ad
lea edx, [esp + 0x5c]
mov edi, dword [esp + 0x6c]
add edi, edx
cmp ecx, ebx
jae 0x4df5bb
lea eax, [esp + 0x5c]
mov ecx, ebp
cmp eax, edi
je 0x4df5cb
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4df5c1
mov eax, dword [esp + 0x6c]
mov byte [eax + ebp], 0
cmp dword [esp + 0x70], ebx
jb 0x4df5e6
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004e895a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x54], ebx
jb 0x4df619
mov edx, dword [esp + 0x40]
push edx
call fcn.004e895a
add esp, 4
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], eax
jne 0x4defd1
jmp 0x4def1e
cmp ebx, ebp
jb 0x4df63d
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004e895a
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x54], ebp
jb 0x4df665
mov edx, dword [esp + 0x40]
push edx
call fcn.004e895a
add esp, 4
xor eax, eax
jmp 0x4df771
push ecx
mov ecx, dword [esi + 4]
push ebx
lea eax, [esp + 0x80]
push eax
call fcn.004dc730
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 9
call fcn.004303f0
mov ebp, 0x10
mov byte [esp + 0xa0], 7
cmp dword [esp + 0x8c], ebp
jb 0x4df6b3
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004e895a
add esp, 4
mov edi, dword [esp + 0x50]
test edi, edi
je 0x4df652
mov esi, dword [esi]
mov edx, dword [esi + 0x140]
mov eax, dword [esi + 0x138]
inc edi
sub eax, edx
cmp eax, edi
jae 0x4df6e3
sub edx, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
add edx, edi
call fcn.004e6df0
mov ebp, dword [esi + 0x140]
lea ecx, [edi + ebp]
mov dword [esi + 0x140], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov edx, eax
cmp ecx, 0x10
jae 0x4df705
lea edx, [esp + 0x40]
mov edi, dword [esp + 0x50]
add edi, edx
cmp ecx, 0x10
jae 0x4df714
lea eax, [esp + 0x40]
mov ecx, ebp
cmp eax, edi
je 0x4df72a
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp eax, edi
jne 0x4df720
mov eax, dword [esp + 0x50]
mov byte [eax + ebp], 0
add ebx, 2
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0xa0], 0xffffffff
jb 0x4df754
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004e895a
add esp, 4
cmp ebx, dword [esp + 0x20]
jne 0x4def40
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
add eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004e8965
add esp, 0x90
ret 8