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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5f6c44
sub esp, 0xa8
mov eax, 0
mov dword [esp + 0xa4], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0x50]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ebx, [0x5f6dd0]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x78]
mov dword [esp + 0xa4], edx
mov byte [esp + 0x23], 1
lea edi, [esp + 0x34]
xor eax, eax
call fcn.0046bbab
nop
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0xa0], 0
mov edx, dword [eax + 0x60]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x68]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.0044cad0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5f6c05
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x5f6738
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
mov edx, dword [edx + 0x18]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x5f6afa
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
call fcn.00475060
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x5f67d8
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
lea ebp, [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004792b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x5f69aa
mov eax, dword [esp + 0x30]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov ecx, dword [0x82b968]
test ecx, ecx
je 0x5f67d1
mov ecx, dword [eax + 0x14]
call fcn.0046b930
mov dword [edi], ecx
mov dword [eax + 0x14], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004753e0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, ecx
sub edx, eax
test edx, edx
jle 0x5f6862
cmp ecx, eax
jb 0x5f6c32
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov ebp, dword [esp + 0xac]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov esi, dword [esi + 0x18]
mov dword [esp], edi
sub ebx, eax
mov edi, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
add eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
test eax, eax
jne 0x5f689f
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5f6628
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp], eax
lea eax, [esp + 0x98]
mov dword [esp + 4], eax
call fcn.00406ed0
jmp 0x5f6628
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0xac]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
je 0x5f68c4
mov ebx, dword [eax + 4]
jmp 0x5f68c6
mov ebx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046bbaa
lea ecx, [0x5f6c50]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x25
lea ecx, [0x66bcea]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.005eefc0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x5f697d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.00406ed0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov ebx, dword [0x82b968]
test ebx, ebx
je 0x5f69d8
mov ebx, dword [edx + 0x14]
call fcn.0046b930
mov dword [edi], ebx
mov dword [edx + 0x14], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004753e0
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5f6a12
mov edx, dword [ecx + 4]
jmp 0x5f6a14
mov edx, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0x80]
mov edx, eax
xor eax, eax
call fcn.0046bbaa
lea ecx, [0x5f6cd0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x30
lea ecx, [0x66f656]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.005eefc0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x5f6acd
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.00406ed0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0xac]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
je 0x5f6b1f
mov ebx, dword [eax + 4]
jmp 0x5f6b21
mov ebx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046bbaa
lea ecx, [0x5f6d50]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], 0x27
lea ecx, [0x66ca9a]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], ecx
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.005eefc0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x5f6bd8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x9c], edx
mov dword [esp], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
call fcn.00406ed0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
call eax
add esp, 0xa8
ret
call fcn.0046ba10
nop
call fcn.00438d70
add esp, 0xa8
ret
call fcn.0046a530
jmp fcn.005f65a0