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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [0x5238b8]
mov ebp, dword [esp + 0x90]
push ebp
call dword [0x5230f4]
mov ebx, eax
mov edx, dword [esp + 0x28]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x64]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
sub eax, ecx
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
sub edx, edi
push ecx
push ebp
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], 0
call dword [0x5230f8]
mov ebp, dword [0x5230fc]
mov edi, eax
push edi
push ebx
mov dword [esp + 0x1c], edi
call ebp
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x20], eax
call fcn.004f7e00
push eax
push ebx
call ebp
push 1
push ebx
mov dword [esp + 0x20], eax
call dword [0x523108]
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push ebx
call fcn.0050e9b0
push 0
mov ecx, esi
call fcn.0050c9c0
test eax, eax
je 0x50e8dd
push ebx
call dword [0x523134]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0050f160
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
push ebx
call dword [0x523114]
mov edx, dword [esi + 0x2830]
xor edi, edi
dec edx
js 0x50e834
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
push edi
mov ecx, esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], eax
call fcn.0050cd30
push eax
mov ecx, esi
call fcn.00511560
mov eax, dword [esp + 0x94]
xor edx, edx
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], edx
push eax
mov dword [esp + 0x60], edx
lea edx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x5c], 0
call dword [0x5238e4]
test eax, eax
je 0x50e828
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push edi
push ebx
call fcn.0050ea80
mov ecx, dword [esi + 0x2830]
inc edi
dec ecx
cmp edi, ecx
jle 0x50e7bd
mov ecx, esi
call fcn.0050d320
mov edi, eax
cmp edi, 0xffffffff
je 0x50e8bd
cmp edi, dword [esi + 0x296c]
jl 0x50e8bd
cmp edi, dword [esi + 0x2970]
jg 0x50e8bd
xor edx, edx
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
push edi
mov ecx, esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
call fcn.0050cd30
push eax
mov ecx, esi
call fcn.00511560
mov edx, dword [esp + 0x94]
xor ecx, ecx
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x58], ecx
push edx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x54]
push eax
push ecx
mov dword [esp + 0x5c], 0
call dword [0x5238e4]
test eax, eax
je 0x50e8bd
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push edi
push ebx
call fcn.0050ea80
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [0x523110]
push ebx
mov ecx, esi
call fcn.0050ead0
push ebx
mov ecx, esi
call fcn.0050e940
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0xac]
push ecx
push eax
call dword [0x5230e4]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x1c]
push edx
push ebx
call ebp
push edi
call dword [0x523100]
push ebx
call dword [0x523104]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 8