Function at 0x4cf930
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x1dc], ebx
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [esp + 0x1f8]
push edi
mov dword [esp + 0x44], ecx
jne 0x4cf95e
mov edi, 0xc0000005
jmp 0x4d00a2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov edi, dword [esp + 0x38]
jne 0x4cf98e
cmp edi, ebx
jne 0x4cf98e
mov edi, 0xc000011e
jmp 0x4d00a2
mov ecx, dword [esp + 0x1f4]
mov ebp, dword [esp + 0x1f0]
and ecx, 8
cmp cl, 8
jne 0x4cf9d6
cmp ebp, ebx
je 0x4cf9d6
mov edx, dword [ebp + 4]
cmp edx, edi
jl 0x4cf9d6
jg 0x4cf9b8
mov ecx, dword [ebp]
cmp ecx, eax
jbe 0x4cf9d6
lea ecx, [esp + 0x1fc]
call fcn.0050ed20
pop edi
pop esi
pop ebp
mov eax, 0xc0000040
pop ebx
add esp, 0x1d0
ret 0x20
lea edx, [esp + 0x68]
push 0x30
push edx
mov dword [esp + 0x24], ebx
call fcn.004c15e0
mov ecx, dword [esp + 0x200]
add esp, 8
test ecx, 0x1000000
push ebx
je 0x4cfe76
mov edx, dword [esi]
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push 0x40
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x4cfe6c
cmp dword [esp + 0x20], 0x40
jne 0x4cfe6c
cmp word [esp + 0x1a0], 0x5a4d
jne 0x4cfe6c
mov eax, dword [esp + 0x1dc]
mov edi, dword [esi]
push ebx
cdq
push ebx
push edx
push eax
mov eax, dword [edi + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push 0xf8
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x4cfe6c
cmp dword [esp + 0x20], 0xf8
jne 0x4cfe6c
mov ecx, dword [esp + 0xd0]
cmp ecx, ebx
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x14], eax
jne 0x4cfaaa
mov dword [esp + 0x68], ebx
jmp 0x4cfab0
add ecx, eax
mov dword [esp + 0x68], ecx
movzx eax, word [esp + 0x106]
movzx ecx, word [esp + 0xac]
movzx edx, word [esp + 0x104]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x78], edx
mov dx, word [esp + 0xf0]
mov dword [esp + 0x74], eax
mov ax, word [esp + 0xf2]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi]
mov dword [esp + 0x6c], ebx
mov word [esp + 0x7e], dx
mov word [esp + 0x7c], ax
cmp dword [ecx + 0x9c], ebx
je 0x4cfb5b
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x18], 1
call edx
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [edi]
push eax
add ecx, 0xac
call fcn.004f6ee0
push eax
call dword [0x100b731c]
test eax, eax
jne 0x4cfb5b
mov edi, 1
jmp 0x4cfb5d
xor edi, edi
test byte [esp + 0x10], 1
je 0x4cfb6d
lea ecx, [esp + 0x3c]
call fcn.004f7250
mov eax, dword [esp + 0xf8]
lea ebp, [esp + 0xa0]
push ebp
mov dword [esp + 0x34], eax
mov edx, dword [esi]
xor ecx, ecx
push 2
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [0x100b7078]
push ebx
push 0x8000000
mov dword [esp + 0x44], ecx
push 0x40
mov dword [esp + 0x4c], ebx
mov eax, dword [edx + 0x290]
mov edx, dword [esp + 0x1f4]
lea ecx, [esp + 0x48]
push ecx
push ebx
or edx, 0xf
push edx
lea ecx, [esp + 0x34]
push ecx
call eax
cmp edi, ebx
mov dword [esp + 0x2c], ebx
je 0x4cfbea
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
mov eax, dword [eax + 0xb4]
cmp eax, ebx
je 0x4cfbea
mov dword [esp + 0x14], eax
jmp 0x4cfc71
mov ecx, dword [0x100b7078]
mov eax, dword [esp + 0x30]
mov edi, dword [ecx + 0x358]
mov ebp, dword [0x10078204]
push 0x40
push 0x100000
push 1
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
call ebp
mov edx, dword [esp + 0x3c]
push eax
push edx
call edi
mov edi, eax
cmp edi, ebx
je 0x4cfc69
cmp dword [esp + 0x14], ebx
je 0x4cfc61
mov eax, dword [0x100b7078]
mov edx, dword [esp + 0x30]
push 0x40
push 0x100000
push 1
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
mov dword [esp + 0x2c], ebx
mov edi, dword [eax + 0x358]
push ebx
lea eax, [esp + 0x30]
push eax
call ebp
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call edi
mov edi, eax
cmp edi, ebx
jne 0x4d0099
mov dword [esp + 0x2c], 1
mov edx, dword [esi]
push ebx
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0xfc]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x3c]
movzx ecx, word [edi + eax + 0x14]
add edi, eax
cmp word [edi + 6], bx
lea ecx, [edi + ecx + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ebx
jbe 0x4cfe47
lea ebx, [ecx + 0xc]
mov dword [esp + 0x10], ebx
jmp 0x4cfcd4
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx - 4]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call fcn.004c8b70
mov ebp, dword [ebx]
add ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
push eax
push ebp
mov dword [esp + 0x44], ebp
call fcn.004c15e0
mov ecx, dword [esp + 0x38]
xor eax, eax
add esp, 0x20
cmp ecx, eax
jne 0x4cfd42
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x98]
push ecx
push 1
mov ecx, eax
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x74], eax
call edx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x48], 0
je 0x4cfd70
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [edx + 0x30]
push ecx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push ecx
push ebp
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x50]
sub eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0xa0]
add eax, edx
cmp eax, ebx
jae 0x4cfd87
mov ebx, eax
cmp word [edi + 6], 0
mov dword [esp + 0x54], 0
jbe 0x4cfdee
mov ebp, dword [esp + 0x58]
add ebp, 0x14
lea ecx, [ecx]
mov edx, dword [edi + 0x38]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
call fcn.004c8b70
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
add esp, 0x18
cmp eax, ecx
jbe 0x4cfdd4
cmp eax, ebx
jae 0x4cfdd4
mov ebx, eax
mov eax, dword [esp + 0x54]
movzx edx, word [edi + 6]
add eax, 1
add ebp, 0x28
cmp eax, edx
mov dword [esp + 0x54], eax
jl 0x4cfda0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add ecx, eax
cmp ebx, ecx
mov dword [esp + 0x24], ecx
jbe 0x4cfe25
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [edx + 0x30]
push ecx
mov ecx, esi
call eax
sub ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
add ebp, ecx
push ebx
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
add dword [esp + 0x10], 0x28
add eax, 1
cmp eax, ecx
mov dword [esp + 0x50], eax
jl 0x4cfcd0
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
je 0x4cffea
mov edx, dword [0x100b7078]
mov edi, dword [edx + 0x3a8]
push eax
call dword [0x10078204]
push eax
call edi
jmp 0x4cffea
mov edi, 0xc000012f
jmp 0x4d0099
mov edx, dword [esp + 0x1ec]
mov eax, dword [0x100b7078]
mov eax, dword [eax + 0x290]
push ecx
push 0x40
lea ecx, [esp + 0x40]
push ecx
push ebx
or edx, 7
push edx
lea ecx, [esp + 0x34]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x4d0099
mov edx, dword [esi]
push ebx
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov eax, dword [esp + 0x38]
xor edx, edx
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x4d0074
mov edi, dword [esp + 0x34]
jg 0x4cfee4
test edi, edi
jbe 0x4cffbe
jmp 0x4cfee4
mov edi, dword [esp + 0x34]
mov ebp, dword [0x100b7188]
mov ecx, edi
sub ecx, edx
sbb eax, ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], 0
jg 0x4cff08
jl 0x4cff04
cmp ecx, ebp
jae 0x4cff08
sub edi, edx
jmp 0x4cff0a
mov edi, ebp
mov ecx, dword [0x100b7078]
mov ebp, dword [0x10078204]
push 4
push 0
push 1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x30], edi
mov ebx, dword [ecx + 0x358]
push 0
lea ecx, [esp + 0x2c]
push ecx
call ebp
mov edx, dword [esp + 0x3c]
push eax
push edx
call ebx
mov edi, eax
test edi, edi
jne 0x4d0097
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [eax + 0x34]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [0x100b7078]
mov edi, dword [eax + 0x3a8]
push ecx
call ebp
push eax
call edi
mov edi, eax
test edi, edi
jne 0x4d0097
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
adc ebx, eax
mov eax, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x4cfee0
jg 0x4d006d
mov edi, dword [esp + 0x34]
cmp edx, edi
jb 0x4cfee4
mov ebp, dword [esp + 0x1f0]
test ebp, ebp
je 0x4cffe8
mov ecx, dword [ebp + 4]
cmp ecx, eax
mov edx, dword [ebp]
jl 0x4cffe8
jg 0x4cffd2
cmp edx, edi
jbe 0x4cffe8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call edx
xor ebx, ebx
cmp dword [esp + 0x200], ebx
je 0x4d007d
push ebx
push 1
push 1
push ebx
call dword [0x10078114]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1e8]
mov edi, eax
push esi
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x200]
push ecx
push edx
add edi, 0x6000000
push eax
lea ecx, [esp + 0x40]
and edi, 0xfffffffc
push ecx
mov dword [esp + 0x3c], edi
call fcn.004e81c0
mov ecx, dword [esp + 0x5c]
add esp, 0x18
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
add ecx, 0x7c
call fcn.004fa3e0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ecx, dword [esp + 0x1e4]
mov dword [ecx], edi
je 0x4d0093
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor edi, edi
jmp 0x4d0099
mov ebp, dword [esp + 0x1f0]
mov edi, dword [esp + 0x34]
jmp 0x4cffbe
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c8a20
mov edx, dword [esp + 0x1e8]
add esp, 4
mov dword [edx], eax
xor edi, edi
jmp 0x4d0099
xor ebx, ebx
lea ecx, [esp + 0x1c]
call fcn.004c8af0
cmp esi, ebx
je 0x4d00ae
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0x20