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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x5f07d3
sub esp, 0x90
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x5f07bd
mov eax, 3
lea ecx, [0x6a17b3]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
test eax, eax
jg 0x5f078d
xor edx, edx
test dl, dl
je 0x5f0709
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x5f06c2
mov edx, dword [0x8a7c38]
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x5f06a2
mov dword [esp + 0x30], eax
lea eax, [0x667d60]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 8], ecx
call fcn.004081b0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
test cl, cl
je 0x5f0651
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + 0x18]
mov ebp, dword [ecx + 0x14]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.005ee6e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], eax
mov eax, dword [0x8c1190]
test eax, eax
jne 0x5f0642
mov dword [edx + 0x14], ecx
call fcn.0040b090
mov eax, dword [esp]
mov dword [esp + 0x50], eax
lea ecx, [0x6957c0]
mov dword [esp], ecx
call fcn.0040a500
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x94]
mov dword [edi + 0x78], eax
mov eax, dword [0x8c1190]
test eax, eax
jne 0x5f0626
mov edx, dword [esp + 0x98]
mov dword [edi + 0x7c], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov edx, dword [0x8c1190]
test edx, edx
jne 0x5f0602
mov edx, dword [esp + 0x34]
mov dword [edi], edx
mov edx, dword [esp + 0x30]
mov dword [edi + 8], edx
mov dword [edi + 0x10], 8
mov ebx, dword [0x8c1190]
test ebx, ebx
jne 0x5f05e7
lea ebx, [0x6a26dc]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], 1
mov dword [edi + 0x18], 1
mov ebx, dword [0x8c1190]
test ebx, ebx
jne 0x5f05ce
mov ebx, dword [esp + 0x50]
mov dword [edi + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x20], ebx
mov ebx, dword [0x8c1190]
lea ebp, [edi + 0x24]
test ebx, ebx
jne 0x5f05b8
mov ebx, dword [esp + 0x3c]
mov dword [edi + 0x24], ebx
mov ebx, dword [edx + 0x18]
mov eax, dword [edx + 0x14]
mov dword [edi + 0x48], ebx
mov edx, dword [0x8c1190]
test edx, edx
jne 0x5f05a5
mov dword [edi + 0x44], eax
mov edx, dword [esp + 0xac]
test edx, edx
je 0x5f059e
mov dword [esp + 0x4c], ebp
je 0x5f059a
mov dword [esp + 0x38], edi
mov ebx, dword [edx + 8]
cmp ebx, 0x4128187d
jne 0x5f0593
mov eax, ebp
lea ebp, [0x704ba0]
cmp ebp, edx
jne 0x5f0589
mov ecx, dword [esp + 0xb0]
jne 0x5f03b9
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [ecx + 8]
cmp ebx, edx
xchg ebp, ebx
setae bl
xchg ebp, ebx
mov eax, dword [ecx + 0xc]
sar edx, 0x1f
cmp eax, edx
sete al
setg dl
and eax, ebp
or edx, eax
test dl, dl
je 0x5f03ac
xor eax, eax
mov dword [edi + 0x2c], eax
sar eax, 0x1f
mov dword [edi + 0x30], eax
lea edi, [esp + 0x64]
mov esi, ecx
call fcn.004514ae
lea ecx, [0x664fa0]
mov dword [esp], ecx
call fcn.0040a500
mov eax, dword [esp + 4]
lea ecx, [0x605bf0]
mov dword [eax], ecx
mov ecx, dword [0x8c1190]
lea edi, [eax + 4]
test ecx, ecx
jne 0x5f0379
lea esi, [esp + 0x64]
call fcn.004514ae
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x5f0336
mov edx, dword [ecx + 0x2c]
test edx, edx
sete dl
mov ebx, dword [ecx + 0x30]
test ebx, ebx
sete bl
and ebx, edx
test bl, bl
je 0x5f0336
lea edx, [0x706c80]
mov dword [ecx + 0x20], edx
mov edx, dword [0x8c1190]
test edx, edx
jne 0x5f035a
lea eax, [0x8c0fac]
mov dword [ecx + 0x24], eax
lea eax, [0x6baea8]
mov dword [ecx + 0x28], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0x90
ret
mov edi, dword [esp + 0x4c]
lea eax, [0x8c0fac]
call fcn.00450d20
lea edi, [ecx + 0x28]
lea eax, [0x6baea8]
call fcn.00450d20
jmp 0x5f0336
mov dword [esp + 0x48], eax
lea eax, [0x678180]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call fcn.004102a0
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x48]
call fcn.00450d20
jmp 0x5f02f4
mov edx, dword [esp + 0x28]
sub edx, ebx
mov eax, edx
jmp 0x5f02a5
cmp ebx, 0xa5164854
jne 0x5f049f
lea ebp, [0x704500]
cmp ebp, edx
jne 0x5f057f
mov ecx, dword [esp + 0xb0]
jne 0x5f049f
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [ecx + 0xc]
cmp ebx, edx
xchg ebp, ebx
setae bl
xchg ebp, ebx
mov eax, dword [ecx + 0x10]
sar edx, 0x1f
cmp eax, edx
setg al
sete dl
and edx, ebp
or eax, edx
test al, al
je 0x5f0492
xor eax, eax
mov dword [edi + 0x2c], eax
sar eax, 0x1f
mov dword [edi + 0x30], eax
lea edi, [esp + 0x78]
mov esi, ecx
call fcn.004514a4
lea ecx, [0x664f40]
mov dword [esp], ecx
call fcn.0040a500
mov eax, dword [esp + 4]
lea ecx, [0x605b20]
mov dword [eax], ecx
mov ecx, dword [0x8c1190]
lea edi, [eax + 4]
test ecx, ecx
jne 0x5f045f
lea esi, [esp + 0x78]
call fcn.004514a4
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x5f02f4
mov dword [esp + 0x44], eax
lea eax, [0x675b80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004102a0
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x44]
call fcn.00450d20
jmp 0x5f02f4
mov edx, dword [esp + 0x28]
sub edx, ebx
mov eax, edx
jmp 0x5f040f
cmp ebx, 0xe763bb76
jne 0x5f056e
lea ebx, [0x7044c0]
cmp ebx, edx
jne 0x5f0575
mov ecx, dword [esp + 0xb0]
jne 0x5f056e
mov edx, dword [ecx + 4]
sub edx, dword [ecx + 0xc]
mov dword [edi + 0x2c], edx
sar edx, 0x1f
mov dword [edi + 0x30], edx
nop
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov ebp, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp esi, edx
ja 0x5f07c9
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebp
lea eax, [0x664c40]
mov dword [esp], eax
call fcn.0040a500
mov eax, dword [esp + 4]
lea ecx, [0x605a40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
sub ecx, edx
mov dword [eax + 0xc], ecx
mov ebx, dword [0x8c1190]
neg ecx
sar ecx, 0x1f
and edx, ecx
mov ecx, dword [esp + 0x40]
add ecx, edx
test ebx, ebx
jne 0x5f054f
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x5f02f4
lea edi, [eax + 4]
mov edx, eax
mov eax, ecx
call fcn.00450d20
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, edx
call fcn.00450d20
jmp 0x5f02f4
mov ecx, edi
jmp 0x5f02f4
mov ecx, 0
jmp 0x5f04c0
mov ecx, 0
jmp 0x5f03da
mov ecx, 0
jmp 0x5f0270
mov eax, ebp
jmp 0x5f03b9
mov eax, ebp
jmp 0x5f056e
mov ecx, edi
jmp 0x5f0336
lea edx, [edi + 0x44]
mov ecx, edi
mov edi, edx
call fcn.00450d20
mov edi, ecx
jmp 0x5f022d
mov eax, edi
mov edi, ebp
mov ecx, eax
mov eax, dword [esp + 0x3c]
call fcn.00450d20
mov edi, ecx
jmp 0x5f0213
lea ebx, [edi + 0x1c]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.00450d20
mov edi, ecx
jmp 0x5f01f4
lea ebx, [edi + 0xc]
mov eax, edi
mov edi, ebx
mov ecx, eax
lea eax, [0x6a26dc]
call fcn.00450d20
mov edi, ecx
jmp 0x5f01d1
mov eax, dword [esp + 0x34]
call fcn.00450d20
lea ebx, [edi + 8]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.00450d20
mov edx, eax
mov edi, ecx
jmp 0x5f01b3
lea edx, [edi + 0x7c]
mov eax, edi
mov edi, edx
mov ecx, eax
mov eax, dword [esp + 0x98]
call fcn.00450d20
mov edi, ecx
jmp 0x5f0191
lea edi, [edx + 0x14]
mov eax, ecx
call fcn.00450d20
jmp 0x5f0151
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x5f0113
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x58], eax
lea edx, [0x706be0]
mov dword [esp], edx
lea edx, [esp + 0x54]
mov dword [esp + 4], edx
call fcn.00407fe0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
jmp 0x5f0113
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ebx
add esp, 0x90
ret
lea eax, [0x666840]
mov dword [esp], eax
call fcn.0040a500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x6a6feb]
mov dword [eax], ecx
mov dword [esp + 0xb4], 0
lea ecx, [0x704720]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0x90
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00407e70
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea ecx, [0x659b80]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea eax, [0x6a999f]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b6a70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x90
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x6baf08]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004d6390
cmp dword [esp + 0x10], 0xffffffff
sete dl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x5f008c
mov ecx, dword [esp + 0x9c]
jmp 0x5f007a
mov eax, esi
mov ecx, edx
call fcn.00450e00
nop
call fcn.0044f4e0
jmp fcn.005f0040