Function at 0x50d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, dword [esp + 0x14]
sub esp, 0xbc
mov dword [esp], ebx
lea eax, [esp + 0x10]
mov dword [esp + 4], 1
lea edx, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004e6b20
test eax, eax
je 0x50d998
mov eax, dword [esp + 0x14]
cmp eax, 0x301
jb 0x50d72c
cmp eax, 0x310
ja 0x50d72c
lea eax, [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], eax
call fcn.004e6130
cmp eax, 4
jne 0x50d6fb
lea eax, [esp + 0x20]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.004f73c0
mov eax, dword [0x606064]
mov edx, dword [0x6075b0]
mov edx, dword [eax + edx + 4]
mov dword [esp], edx
call dword [eax + 0x140]
mov ebp, eax
test ebp, ebp
je 0x50d33e
xor eax, eax
lea edx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], eax
mov byte [ebp + 3], al
mov byte [ebp + 2], al
mov byte [ebp + 1], al
lea eax, [ebp + 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
mov byte [ebp], 2
mov dword [ebp + 0x18], 0x50c760
mov dword [esp + 4], ebp
mov dword [esp], 0x5d1788
call fcn.004f83d0
test ebp, ebp
je 0x50d759
lea eax, [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], 0xe
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
call fcn.004e6b20
test eax, eax
je 0x50d967
mov eax, dword [esp + 0x2c]
cmp eax, 0x301
jb 0x50d6c3
cmp eax, 0x310
ja 0x50d6c3
lea eax, [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591410
test eax, eax
je 0x50d92f
mov eax, dword [esp + 0x14]
cmp eax, 0x304
jae 0x50d3b8
mov dword [esp + 0x54], 0
jmp 0x50d536
lea eax, [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
call fcn.004e6b20
test eax, eax
je 0x50d8fe
mov eax, dword [esp + 0x2c]
cmp eax, 0x301
jb 0x50d676
cmp eax, 0x310
ja 0x50d676
lea eax, [esp + 0x60]
lea edx, [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
call fcn.004e6b20
test eax, eax
je 0x50d62f
mov eax, dword [esp + 0x64]
cmp eax, 0x301
jb 0x50d60b
cmp eax, 0x310
ja 0x50d60b
lea eax, [esp + 0x68]
mov dword [esp], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], eax
call fcn.004e6130
cmp eax, 4
jne 0x50d62f
lea eax, [esp + 0x68]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.004f73c0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], eax
test eax, eax
jg 0x50d487
mov dword [esp + 0x50], 0
jmp 0x50d4a9
shl eax, 2
mov edx, dword [0x606064]
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
mov dword [esp + 0x50], eax
test eax, eax
je 0x50d8be
mov eax, dword [esp + 0x68]
xor edi, edi
test eax, eax
jle 0x50d52a
mov dword [esp + 0xb4], ebp
mov ebp, 0xf
xor esi, esi
lea eax, [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.004e6b20
test eax, eax
je 0x50d8b2
mov eax, dword [esp + 0x64]
cmp eax, 0x301
jb 0x50d8f2
cmp eax, 0x310
jbe 0x50d503
mov ebp, dword [esp + 0xb4]
jmp 0x50d62f
mov dword [esp], ebx
call fcn.0050ee20
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [edx + edi*4], eax
je 0x50d8b2
inc edi
mov eax, dword [esp + 0x68]
cmp edi, eax
jl 0x50d4c1
mov ebp, dword [esp + 0xb4]
lea eax, [esp + 0x50]
test eax, eax
je 0x50d62f
mov eax, dword [esp + 0x38]
xor esi, esi
mov eax, dword [eax]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x50d5ca
mov edi, 0x14
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
call fcn.004e6b20
test eax, eax
je 0x50d859
mov eax, dword [esp + 0x14]
cmp eax, 0x301
jb 0x50d800
cmp eax, 0x310
ja 0x50d800
lea edx, [esp + 0x38]
lea ecx, [esp + 0x50]
mov eax, ebx
call fcn.0050d9d0
test eax, eax
je 0x50d7a7
lea edx, [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov edx, dword [ebp + 8]
lea ecx, [eax + 0x40]
inc esi
mov dword [edx + 4], ecx
lea edx, [eax + 0x40]
mov dword [ebp + 8], edx
mov dword [eax + 0x3c], ebp
cmp esi, dword [esp + 0x20]
jl 0x50d552
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0050e170
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov dword [esp], 0x5d1788
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00508310
test eax, eax
je 0x50d766
add esp, 0xbc
mov eax, ebp
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x74], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.004f73d0
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x7c], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x80], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x84], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x88], eax
lea eax, [esp + 0x84]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x48], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x24], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0xac], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xac]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0xa4], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa4]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea edx, [esp + 0x50]
mov dword [esp], edx
call fcn.0050e170
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x94], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x98], eax
lea eax, [esp + 0x94]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0050e170
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x9c], 2
mov dword [esp], 0x80000004
call fcn.004f73c0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x9c]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea edx, [esp + 0x50]
mov dword [esp], edx
call fcn.0050e170
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.00591750
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x8c], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x90], eax
lea eax, [esp + 0x8c]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0xb4]
jmp 0x50d62f
mov eax, dword [esp + 0x68]
mov dword [esp], 0x80000013
shl eax, 2
mov dword [esp + 0x6c], 2
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.004f73d0
jmp 0x50d62f
mov ebp, dword [esp + 0xb4]
jmp 0x50d62f
mov dword [esp + 0x58], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebp
call fcn.0050d194
mov dword [esp + 0x40], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x30], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x18], 2
mov dword [esp], 0x8000001a
call fcn.004f73c0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret