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

Disassembly:
sub esp, 0x1cc
push ebp
push esi
mov esi, dword [esp + 0x1f0]
xor ebp, ebp
cmp dword [esp + 0x1d8], ebp
push edi
mov dword [esp + 0x54], ecx
jne 0x50f699
mov edi, 0xc0000005
jmp 0x50fd88
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
mov edx, dword [esp + 0x2c]
jne 0x50f6c9
cmp edx, ebp
jne 0x50f6c9
mov edi, 0xc000011e
jmp 0x50fd88
mov eax, dword [esp + 0x1ec]
and eax, 8
cmp al, 8
jne 0x50f70e
mov eax, dword [esp + 0x1e8]
cmp eax, ebp
je 0x50f70e
mov edi, dword [eax + 4]
cmp edi, edx
jl 0x50f70e
jg 0x50f6f1
mov edx, dword [eax]
cmp edx, ecx
jbe 0x50f70e
lea ecx, [esp + 0x1f4]
call fcn.004e4310
pop edi
pop esi
mov eax, 0xc0000040
pop ebp
add esp, 0x1cc
ret 0x20
push ebx
lea eax, [esp + 0x64]
push 0x30
push eax
mov dword [esp + 0x1c], ebp
call fcn.004c3240
mov eax, dword [esp + 0x1fc]
add esp, 8
test eax, 0x1000000
push ebp
je 0x50fb47
mov edx, dword [esi]
xor ecx, ecx
push ebp
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 + 0x1a4]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x50fb3d
cmp dword [esp + 0x20], 0x40
jne 0x50fb3d
cmp word [esp + 0x19c], 0x5a4d
jne 0x50fb3d
mov eax, dword [esp + 0x1d8]
mov edi, dword [esi]
push ebp
cdq
push ebp
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 pe_nt_image_headers32
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x50fb3d
cmp dword [esp + 0x20], 0xf8
jne 0x50fb3d
mov ecx, dword [esp + 0xcc]
cmp ecx, ebp
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
jne 0x50f7e2
mov dword [esp + 0x64], ebp
jmp 0x50f7e8
add ecx, eax
mov dword [esp + 0x64], ecx
movzx ecx, word [esp + 0xa8]
movzx eax, word [esp + 0x102]
movzx edx, word [esp + 0x100]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x70], eax
mov ax, word [esp + 0xee]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x9c]
push edi
mov dword [esp + 0x78], edx
mov dx, word [esp + 0xf0]
mov word [esp + 0x7c], ax
xor ecx, ecx
push 2
xor eax, eax
push ecx
mov dword [esp + 0x74], ebp
mov word [esp + 0x86], dx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esp + 0x38]
mov ecx, dword [0x1018efa4]
push ebp
push 0x8000000
push 0x40
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1f0]
lea eax, [esp + 0x48]
push eax
push ebp
or edx, 0xf
add ecx, 0x2b0
push edx
mov dword [esp + 0x58], ebp
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
mov edx, dword [esp + 0x38]
mov edi, dword [0x1018efa4]
mov ebx, dword [0x10082210]
push 0x40
push 0x100000
push 1
lea ecx, [esp + 0x44]
push ecx
push ebp
push edx
push ebp
lea eax, [esp + 0x34]
push eax
add edi, 0x3a0
call ebx
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
call eax
call eax
mov edi, eax
cmp edi, ebp
je 0x50f93e
cmp dword [esp + 0x18], ebp
je 0x50f936
mov edx, dword [esp + 0x38]
mov edi, dword [0x1018efa4]
push 0x40
push 0x100000
push 1
lea ecx, [esp + 0x44]
push ecx
push ebp
push edx
push ebp
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], ebp
add edi, 0x3a0
call ebx
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
call eax
call eax
mov edi, eax
cmp edi, ebp
jne 0x50fd7e
mov edx, dword [esi]
push ebp
xor ecx, ecx
push ebp
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0xf8]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x3c]
movzx ecx, word [edi + eax + 0x14]
add edi, eax
cmp word [edi + 6], bp
lea ecx, [edi + ecx + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], ebp
jbe 0x50fb1d
lea ebx, [ecx + 0xc]
mov dword [esp + 0x1c], ebx
jmp 0x50f9a4
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx - 4]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call fcn.004c4610
mov ebp, dword [ebx]
add ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
push eax
push ebp
mov dword [esp + 0x44], ebp
call fcn.004c3240
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x20
cmp ecx, eax
jne 0x50fa0f
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x5c]
push ecx
push 1
mov ecx, eax
push ecx
push eax
mov ecx, esi
mov dword [esp + 0xa8], eax
call edx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x44], 0
je 0x50fa3d
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 + 0x44]
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 + 0x10]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, dword [edi + 0x50]
mov ebx, dword [esp + 0x9c]
add eax, edx
cmp eax, ebx
jae 0x50fa54
mov ebx, eax
cmp word [edi + 6], 0
mov dword [esp + 0x4c], 0
jbe 0x50fabe
mov ebp, dword [esp + 0x50]
add ebp, 0x14
lea ebx, [ebx]
mov edx, dword [edi + 0x38]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
call fcn.004c4610
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x28]
add esp, 0x18
cmp eax, ecx
jbe 0x50faa4
cmp eax, ebx
jae 0x50faa4
mov ebx, eax
mov eax, dword [esp + 0x4c]
movzx edx, word [edi + 6]
add eax, 1
add ebp, 0x28
cmp eax, edx
mov dword [esp + 0x4c], eax
jl 0x50fa70
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
add ecx, eax
cmp ebx, ecx
mov dword [esp + 0x24], ecx
jbe 0x50faf5
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 + 0x48]
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 + 0x34]
movzx ecx, word [edi + 6]
add dword [esp + 0x1c], 0x28
add eax, 1
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x50f9a0
mov eax, dword [esp + 0x18]
mov ebx, dword [0x10082210]
xor ebp, ebp
mov edi, dword [0x1018efa4]
push eax
add edi, 0x400
call ebx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
call eax
jmp 0x50fcd4
mov edi, 0xc000012f
jmp 0x50fd7e
mov ecx, dword [0x1018efa4]
push eax
mov eax, dword [esp + 0x1ec]
push 0x40
lea edx, [esp + 0x38]
push edx
push ebp
or eax, 7
add ecx, 0x2b0
push eax
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov edi, eax
cmp edi, ebp
jne 0x50fd7e
mov edx, dword [esi]
push ebp
xor ecx, ecx
push ebp
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov eax, dword [esp + 0x30]
xor edx, edx
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x50fd59
mov edi, dword [esp + 0x2c]
jg 0x50fbbe
cmp edi, ebp
jbe 0x50fca4
jmp 0x50fbbe
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, edi
sub ecx, edx
sbb eax, ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebp
mov ebp, dword [0x1018eea0]
jg 0x50fbe0
jl 0x50fbda
cmp ecx, ebp
jae 0x50fbe0
sub edi, edx
mov eax, edi
jmp 0x50fbe2
mov eax, ebp
mov edi, dword [0x1018efa4]
mov ebx, dword [0x10082210]
push 4
push 0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x38]
push eax
add edi, 0x3a0
call ebx
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
call eax
call eax
mov edi, eax
test edi, edi
jne 0x50fd7c
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
mov edi, dword [0x1018efa4]
push eax
add edi, 0x400
call ebx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
call eax
mov edi, eax
test edi, edi
jne 0x50fd7c
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
adc ebx, eax
mov eax, dword [esp + 0x30]
cmp ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x50fbb8
jg 0x50fd57
mov edi, dword [esp + 0x2c]
cmp edx, edi
jb 0x50fbbc
xor ebp, ebp
mov ecx, dword [esp + 0x1ec]
cmp ecx, ebp
je 0x50fcd4
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, eax
jl 0x50fcd4
jg 0x50fcbe
cmp edx, edi
jbe 0x50fcd4
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
cmp dword [esp + 0x1fc], ebp
je 0x50fd62
push ebp
push 1
push 1
push ebp
call dword [0x10082198]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1e4]
mov edi, eax
push esi
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x1fc]
push ecx
push edx
add edi, 0x6000000
push eax
lea ecx, [esp + 0x48]
and edi, 0xfffffffc
push ecx
mov dword [esp + 0x3c], edi
call fcn.0053aa40
mov ecx, dword [esp + 0x70]
add esp, 0x18
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
add ecx, 0x7c
call fcn.005289e0
mov eax, dword [esp + 0x34]
cmp eax, ebp
mov ecx, dword [esp + 0x1e0]
mov dword [ecx], edi
je 0x50fd78
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor edi, edi
jmp 0x50fd7e
xor ebp, ebp
mov edi, dword [esp + 0x2c]
jmp 0x50fca4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c44a0
mov edx, dword [esp + 0x1e4]
add esp, 4
mov dword [edx], eax
xor edi, edi
jmp 0x50fd7e
xor ebp, ebp
lea ecx, [esp + 0x14]
call fcn.004c4570
pop ebx
cmp esi, ebp
je 0x50fd94
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x1cc
ret 0x20