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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b56cd
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004957b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x5b559b
mov dword [esp + 0x6c], ebx
nop
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.00502900
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x5b555b
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], ebx
lea eax, [0x68a440]
mov dword [esp], eax
call fcn.0040b430
mov eax, dword [esp + 4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x5b529c
mov edx, dword [0x8d5630]
test edx, edx
jne 0x5b5289
mov dword [eax + 0x2bc], ecx
jmp 0x5b52d7
lea edi, [eax + 0x2bc]
mov edx, eax
mov eax, ecx
call fcn.0045efb0
mov eax, edx
jmp 0x5b52d7
lea eax, [0x6891a0]
mov dword [esp], eax
call fcn.0040b430
mov eax, dword [0x8d5630]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5b52c4
mov eax, dword [esp + 0x70]
mov dword [eax + 0x2bc], ecx
jmp 0x5b52d7
mov edx, dword [esp + 0x70]
lea edi, [edx + 0x2bc]
mov eax, ecx
call fcn.0045efb0
mov eax, edx
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5b52eb
mov dword [ecx + 4], 0x10000
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5b52ff
mov dword [ecx + 8], 0x1000
mov ecx, dword [eax + 0x2bc]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
test edx, edx
je 0x5b5389
mov dword [esp + 0x30], edx
mov dword [esp + 0x64], ecx
lea eax, [0x66aa60]
mov dword [esp], eax
call fcn.0040b430
mov eax, dword [esp + 4]
mov ecx, dword [0x8a7a18]
mov edx, dword [0x8a7a1c]
mov dword [eax + 0xc], edx
mov edx, dword [0x8d5630]
test edx, edx
jne 0x5b5347
mov dword [eax + 8], ecx
jmp 0x5b5355
lea edi, [eax + 8]
mov edx, eax
mov eax, ecx
call fcn.0045efb0
mov eax, edx
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x8d5630]
test ecx, ecx
jne 0x5b536e
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
jmp 0x5b537e
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0045efb0
mov eax, ecx
mov dword [esp + 0x44], eax
xor ecx, ecx
jmp 0x5b569c
mov eax, dword [0x8acff8]
mov dword [esp + 0x60], eax
lea ecx, [0x67cc80]
mov dword [esp], ecx
call fcn.0040b430
mov eax, dword [esp + 4]
lea ecx, [0x700c60]
mov dword [eax + 0x14], ecx
mov edx, dword [0x8d5630]
test edx, edx
jne 0x5b53c1
mov edx, dword [esp + 0x60]
mov dword [eax + 0x18], edx
jmp 0x5b53d5
lea edi, [eax + 0x18]
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.0045efb0
mov ebx, eax
mov eax, edx
mov edx, ebx
mov dword [esp + 0x4c], eax
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov ebx, dword [0x8a7a8c]
cmp dword [0x8a7a88], ecx
jne 0x5b5420
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004033f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5b5420
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x28], 1
lea eax, [0x66aac0]
mov dword [esp], eax
call fcn.0040b430
mov edi, dword [esp + 4]
mov dword [esp + 0x5c], edi
mov eax, dword [0x8d5630]
test eax, eax
jne 0x5b5448
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
jmp 0x5b5451
mov eax, dword [esp + 0x4c]
call fcn.0045efb0
lea eax, [0x67d540]
mov dword [esp], eax
call fcn.0040b430
mov eax, dword [esp + 4]
lea ecx, [0x6b0ab0]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x8d5630]
test ecx, ecx
jne 0x5b547f
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], eax
jmp 0x5b548b
mov ecx, dword [esp + 0x5c]
lea edi, [ecx + 4]
call fcn.0045efb0
nop
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
lea eax, [0x5b56e0]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], 2
mov dword [esp + 0x54], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x54], eax
lea eax, [0x700aa8]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00502ec0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
lea ecx, [0x66aa60]
mov dword [esp], ecx
call fcn.0040b430
mov eax, dword [esp + 4]
mov ecx, dword [0x8a7a18]
mov edx, dword [0x8a7a1c]
mov dword [eax + 0xc], edx
mov edx, dword [0x8d5630]
test edx, edx
jne 0x5b551a
mov dword [eax + 8], ecx
jmp 0x5b5528
lea edi, [eax + 8]
mov edx, eax
mov eax, ecx
call fcn.0045efb0
mov eax, edx
lea ecx, [0x700a80]
mov dword [eax], ecx
mov ecx, dword [0x8d5630]
test ecx, ecx
jne 0x5b5543
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
jmp 0x5b5553
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045efb0
mov eax, ecx
mov dword [esp + 0x48], eax
xor ecx, ecx
jmp 0x5b55d3
nop
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5b557e
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004965b0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x48]
test ecx, ecx
jl 0x5b55b8
mov ecx, dword [0x8d5630]
test ecx, ecx
jne 0x5b55ed
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x2c0], eax
jmp 0x5b55fc
mov ecx, dword [esp + 0x70]
lea edi, [ecx + 0x2c0]
call fcn.0045efb0
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x28c], edx
mov ebx, dword [esp + 0x38]
mov dword [ecx + 0x290], ebx
mov ebx, dword [0x8d5630]
test ebx, ebx
jne 0x5b5626
mov ebx, dword [esp + 0x68]
mov dword [ecx + 0x288], ebx
jmp 0x5b5635
lea edi, [ecx + 0x288]
mov eax, dword [esp + 0x68]
call fcn.0045efb0
mov dword [ecx + 0x2ac], edx
mov edx, dword [0x8d5630]
test edx, edx
jne 0x5b5651
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x2b8], eax
jmp 0x5b5660
lea edi, [ecx + 0x2b8]
mov eax, dword [esp + 0x6c]
call fcn.0045efb0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x44]
test ecx, ecx
jl 0x5b5681
mov ecx, dword [0x8d5630]
test ecx, ecx
jne 0x5b56b9
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x2c0], eax
jmp 0x5b55fc
mov ecx, dword [esp + 0x70]
lea edi, [ecx + 0x2c0]
call fcn.0045efb0
jmp 0x5b55fc
call fcn.0045dba0
jmp fcn.005b51a0