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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50d996
sub esp, 0x58
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x50d884
xor eax, eax
mov ecx, eax
mov edx, dword [esp + 0x70]
test edx, edx
je 0x50d853
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [ecx + 0x140]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x50d847
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.00502a00
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
test edx, edx
jne 0x50d83b
mov edx, dword [esp + 0x5c]
mov byte [edx + 0x148], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov ebx, dword [edx + 0x10]
mov dword [esp], ebx
call fcn.0046ad60
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x44]
test edx, edx
je 0x50d71b
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.0050d4d0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.0050d4d0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00502930
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x58
ret
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046ae40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x50d7c9
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.0050d4d0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.0050d4d0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00502930
jmp 0x50d707
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.0050d4d0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
lea edx, [0x6da480]
mov dword [esp], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 8], edx
call fcn.0040c120
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.00502930
jmp 0x50d707
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
add esp, 0x58
ret
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00502810
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x50d878
mov edx, dword [esp + 0x5c]
xor eax, eax
xor ecx, ecx
jmp 0x50d656
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x58
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x140]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x50d98a
test ebx, ebx
jne 0x50d8c3
mov eax, edx
mov ecx, ebx
jmp 0x50d5b9
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0046ac80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x50d8f8
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x50d8ba
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x6e0de0]
mov dword [esp], eax
call fcn.0040e460
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov dword [eax + 4], 4
mov ecx, dword [0x9cadb0]
test ecx, ecx
jne 0x50d972
lea ecx, [0x71a796]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [0x9cadb0]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x50d95c
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
lea ecx, [0x79bb20]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov dword [esp], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x4c]
jmp 0x50d94a
mov dword [esp], eax
lea ecx, [0x71a796]
mov dword [esp + 4], ecx
call fcn.0040ecd0
mov eax, dword [esp + 0x4c]
jmp 0x50d92f
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
call fcn.0044ae20
jmp fcn.0050d590