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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f9a1c
sub esp, 0x74
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5f9a03
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x5f96a9
lea ebp, [0x7ad404]
jmp 0x5f96ad
xor ebp, ebp
xor ebx, ebx
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.005f6300
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5f96e7
lea edx, [0x7ad404]
jmp 0x5f96eb
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
call fcn.00409df0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5f9714
mov edx, dword [eax + 4]
jmp 0x5f9716
mov edx, eax
lea eax, [0x9c5480]
mov dword [esp], eax
lea ecx, [0x6e41c0]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
call fcn.00470d20
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
test al, al
je 0x5f979c
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx]
test ebp, ebp
je 0x5f9760
mov ebp, dword [ebp + 4]
mov esi, dword [esp + 0x14]
cmp ebp, esi
je 0x5f976f
mov eax, 1
jmp 0x5f97a2
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404260
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x5f97a2
mov ebx, dword [esp + 0x28]
xor eax, eax
test al, al
jne 0x5f9952
mov eax, dword [ebx + 8]
test eax, eax
je 0x5f97b4
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 4], ebp
call fcn.00409df0
mov eax, dword [esp + 8]
lea ecx, [0x9c54a0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
lea ecx, [0x6e41c0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00470d20
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test al, al
je 0x5f987b
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x58], esi
lea edi, [0x6e41c0]
cmp eax, edi
je 0x5f9845
mov eax, 1
jmp 0x5f9877
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
call fcn.00404260
movzx eax, byte [esp + 0xc]
xor eax, 1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
lea edi, [0x6e41c0]
test al, al
jne 0x5f987f
add esp, 0x74
ret
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], esi
lea eax, [0x9c5480]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004711f0
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.004686fa
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
test ecx, ecx
je 0x5f98b9
mov ecx, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00409df0
mov eax, dword [esp + 8]
lea ecx, [0x6e41c0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x74ac47]
mov dword [esp], eax
mov dword [esp + 4], 0x31
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004c6ba0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409df0
mov eax, dword [esp + 8]
lea ecx, [0x6e41c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004386b0
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.004686fa
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
call fcn.00409df0
mov ecx, dword [esp + 8]
lea edx, [0x6e41c0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
test ebx, ebx
je 0x5f99a0
mov ebx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
lea eax, [0x74ac16]
mov dword [esp], eax
mov dword [esp + 4], 0x31
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004c6ba0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409df0
mov eax, dword [esp + 8]
lea ecx, [0x6e41c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004386b0
lea eax, [0x6e41c0]
mov dword [esp], eax
lea eax, [0x7aad18]
mov dword [esp + 4], eax
call fcn.004386b0
nop
call fcn.00467050
jmp fcn.005f9660