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

Disassembly:
sub esp, 0x50
cmp dword [esp + 0x60], 0
push ebx
mov ebx, dword [0x58770c]
push ebp
push esi
push edi
mov esi, ecx
jne 0x50c93f
call fcn.00509770
test al, 0x20
jne 0x50c93f
mov ebp, dword [0x587780]
lea edi, [esi + 0x138]
push edi
call ebp
test eax, eax
jne 0x50c90a
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
push edi
call ebx
test eax, eax
je 0x50c90a
mov edx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword [edx], 0xfffffffd
or eax, 0xffffffff
pop ebx
add esp, 0x50
ret 0x10
lea edi, [esi + 0x148]
push edi
call ebp
test eax, eax
jne 0x50c93f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
push edi
call ebx
test eax, eax
je 0x50c93f
mov edx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword [edx], 0xfffffffc
or eax, 0xffffffff
pop ebx
add esp, 0x50
ret 0x10
mov edi, dword [esp + 0x6c]
mov dword [edi], 0
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x15c]
add dword [esp + 0x64], eax
add dword [esp + 0x68], ecx
push 1
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov dword [esp + 0x78], 0xffffffff
call fcn.0050a7f0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x58]
push eax
call ebx
test eax, eax
je 0x50cb1a
mov dword [edi], 1
mov eax, dword [esi + 0xf0]
neg eax
sbb eax, eax
mov dword [esp + 0x6c], eax
je 0x50c9ea
lea ebp, [esi + 0xe4]
jmp 0x50c9b0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.00509bf0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
call ebx
test eax, eax
jne 0x50ca00
cmp dword [esp + 0x6c], eax
jne 0x50c9b0
cmp dword [edi], 1
jne 0x50cb56
pop edi
pop esi
pop ebp
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x64]
pop ebx
add esp, 0x50
ret 0x10
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esi + 0x100]
call fcn.0050bab0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov ebp, dword [0x5876b4]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call ebp
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call ebx
test eax, eax
je 0x50ca55
mov eax, dword [esp + 0x70]
mov dword [edi], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esi + 0x11c]
call fcn.0050bab0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call ebp
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call ebx
test eax, eax
je 0x50caa4
mov eax, dword [esp + 0x70]
mov dword [edi], 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x50cab8
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x18], eax
jg 0x50cacc
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x50cae0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jg 0x50caf4
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call ebx
neg eax
sbb eax, eax
dec eax
mov dword [edi], eax
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x50]
jge 0x50cb29
or dword [edi], 0x40
jmp 0x50cb32
cmp eax, dword [esp + 0x58]
jle 0x50cb32
or dword [edi], 0x20
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x54]
jge 0x50cb4d
or dword [edi], 8
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
cmp eax, dword [esp + 0x5c]
jle 0x50cb56
or dword [edi], 0x10
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10