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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x124]
cmp eax, dword [ecx + 8]
jbe 0x5a1742
sub esp, 0x1a4
mov eax, dword [esp + 0x1ac]
jmp 0x5a12f0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
lea ecx, [0x62c5a0]
mov dword [esp], ecx
call fcn.0040b380
mov eax, dword [esp + 4]
mov dword [esp + 0x168], eax
mov ecx, dword [esp + 0x1a8]
mov dword [esp], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
call fcn.005b0530
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
lea edi, [esp + 0x60]
mov esi, dword [esp + 0x168]
call fcn.0045f080
lea ecx, [0x62c5a0]
mov dword [esp], ecx
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
call fcn.00408c00
mov eax, dword [esp + 8]
lea ecx, [0x62c5a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3990
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x1a8]
mov dword [esp], ecx
lea edx, [0x5fd320]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x168]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
call fcn.005b1250
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5a1716
lea edi, [esp + 0x60]
mov esi, dword [esp + 0x168]
call fcn.0045f080
lea edi, [esp + 0x40]
xor eax, eax
call fcn.0045ebb8
lea ecx, [esp + 0x60]
mov dword [esp], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
call fcn.004025e0
movzx ecx, byte [esp + 0xc]
test cl, cl
jne 0x5a16e1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x1a8]
mov edx, dword [ecx + 0x28c]
mov ebx, dword [esp + 0x30]
sub edx, ebx
mov ebp, dword [esp + 0x168]
mov esi, dword [ebp + 0x10]
cmp esi, eax
jb 0x5a1437
cmp dword [ebp + 0xc], eax
jae 0x5a1458
cmp esi, eax
jbe 0x5a1437
mov edx, dword [ebp + 0xc]
mov esi, eax
sub eax, edx
mov edi, eax
jmp 0x5a145c
mov edx, dword [ebp + 0xc]
cmp edx, eax
jbe 0x5a1448
mov edx, eax
sub eax, esi
mov esi, edx
mov edi, eax
jmp 0x5a145c
mov edi, eax
sub eax, esi
mov esi, edi
sub edi, edx
cmp edi, eax
ja 0x5a145c
mov edi, eax
jmp 0x5a145c
mov esi, eax
mov edi, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], edi
movzx eax, byte [ecx + 0x295]
test al, al
je 0x5a149f
mov dword [esp], ecx
lea eax, [0x5fd320]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
call fcn.005b3dc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
jmp 0x5a14cd
mov dword [esp], ecx
lea eax, [0x5fd320]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
call fcn.005b3430
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x5a16cc
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x160], edx
mov ecx, dword [esp + 0x168]
mov ebp, dword [ecx]
test ebp, ebp
jne 0x5a153d
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0045eb88
mov ecx, dword [esp + 0x1a8]
mov ebp, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
lea edx, [0x635900]
cmp ebp, edx
jne 0x5a172b
lea edi, [esp + 0x80]
mov esi, ebx
call fcn.0045eea0
mov ecx, dword [esp + 0x168]
mov ebx, dword [ecx + 4]
sub ebx, dword [esp + 0x9c]
mov ebp, ebx
jmp 0x5a1540
mov ebp, dword [ecx + 4]
mov eax, dword [esp + 0x1a8]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
call fcn.005b0970
mov eax, dword [esp + 0xc]
mov dword [esp + 0x164], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005afee0
movzx eax, byte [esp + 8]
test al, al
je 0x5a16c0
lea edi, [esp + 0x16c]
xor eax, eax
call fcn.0045ebb2
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x16c], ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x170], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x174], ecx
mov ecx, dword [esp + 0x160]
mov dword [esp + 0x178], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x17c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x180], ecx
lea edi, [esp + 0x184]
mov esi, dword [esp + 0x168]
call fcn.0045f080
mov ecx, dword [esp + 0x1a8]
mov edx, dword [ecx + 0x1b0]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0x1ac]
mov eax, ecx
mov ecx, dword [ecx + 0x1b4]
cmp ecx, ebx
jae 0x5a166c
lea eax, [0x6240c0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.00447e40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1a8]
mov dword [ebx + 0x1b4], edx
mov edx, dword [0x84c5a0]
test edx, edx
jne 0x5a165b
mov dword [ebx + 0x1ac], eax
jmp 0x5a1666
lea edi, [ebx + 0x1ac]
call fcn.0045e940
mov edx, ecx
mov ebp, eax
mov eax, ebx
lea ecx, [edx + 1]
mov dword [eax + 0x1b0], ecx
mov ecx, dword [0x84c5a0]
imul edx, edx, 0x38
lea edi, [ebp + edx]
test ecx, ecx
jne 0x5a1697
lea esi, [esp + 0x16c]
call fcn.0045f044
jmp 0x5a12ec
lea eax, [0x6240c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x16c]
mov dword [esp + 8], eax
call fcn.00410410
mov eax, dword [esp + 0x1a8]
jmp 0x5a12ec
mov eax, dword [esp + 0x1a8]
jmp 0x5a12ec
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ecx
add esp, 0x1a4
ret
mov eax, dword [esp + 0x1a8]
mov ecx, dword [eax + 0x1b0]
test ecx, ecx
je 0x5a16f9
mov byte [eax + 0x2a8], 1
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
add esp, 0x1a4
ret
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], edx
add esp, 0x1a4
ret
mov dword [esp], ebp
mov dword [esp + 4], edx
lea eax, [0x60c180]
mov dword [esp + 8], eax
call fcn.00408a40
nop
call fcn.0045d530
jmp fcn.005a12c0