Function at 0x5f85f0
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 0x5f8d83
sub esp, 0x90
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x5f8d6d
mov eax, 3
lea ecx, [0x6b48e7]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
test eax, eax
jg 0x5f8d3d
xor edx, edx
test dl, dl
je 0x5f8cb9
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x5f8c72
mov edx, dword [0x96036c]
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 0x5f8c52
mov dword [esp + 0x30], eax
lea eax, [0x677800]
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.004080a0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
test cl, cl
je 0x5f8c01
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.005f6c90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], eax
mov eax, dword [0x98ef80]
test eax, eax
jne 0x5f8bf2
mov dword [edx + 0x14], ecx
call fcn.0040af40
mov eax, dword [esp]
mov dword [esp + 0x50], eax
lea ecx, [0x6a7f40]
mov dword [esp], ecx
call fcn.0040a3f0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x94]
mov dword [edi + 0x78], eax
mov eax, dword [0x98ef80]
test eax, eax
jne 0x5f8bd6
mov edx, dword [esp + 0x98]
mov dword [edi + 0x7c], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov edx, dword [0x98ef80]
test edx, edx
jne 0x5f8bb2
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 [0x98ef80]
test ebx, ebx
jne 0x5f8b97
lea ebx, [0x6b80e3]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], 1
mov dword [edi + 0x18], 1
mov ebx, dword [0x98ef80]
test ebx, ebx
jne 0x5f8b7e
mov ebx, dword [esp + 0x50]
mov dword [edi + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x20], ebx
mov ebx, dword [0x98ef80]
lea ebp, [edi + 0x24]
test ebx, ebx
jne 0x5f8b68
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 [0x98ef80]
test edx, edx
jne 0x5f8b55
mov dword [edi + 0x44], eax
mov edx, dword [esp + 0xac]
test edx, edx
je 0x5f8b4e
mov dword [esp + 0x4c], ebp
je 0x5f8b4a
mov dword [esp + 0x38], edi
mov ebx, dword [edx + 8]
cmp ebx, 0x4128187d
jne 0x5f8b43
mov eax, ebp
lea ebp, [0x71e020]
cmp ebp, edx
jne 0x5f8b39
mov ecx, dword [esp + 0xb0]
jne 0x5f8969
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 0x5f895c
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.00450a5e
lea ecx, [0x6748a0]
mov dword [esp], ecx
call fcn.0040a3f0
mov eax, dword [esp + 4]
lea ecx, [0x60dbd0]
mov dword [eax], ecx
mov ecx, dword [0x98ef80]
lea edi, [eax + 4]
test ecx, ecx
jne 0x5f8929
lea esi, [esp + 0x64]
call fcn.00450a5e
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x5f88e6
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 0x5f88e6
lea edx, [0x720460]
mov dword [ecx + 0x20], edx
mov edx, dword [0x98ef80]
test edx, edx
jne 0x5f890a
lea eax, [0x98ed6c]
mov dword [ecx + 0x24], eax
lea eax, [0x6d583c]
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, [0x98ed6c]
call fcn.004502f0
lea edi, [ecx + 0x28]
lea eax, [0x6d583c]
call fcn.004502f0
jmp 0x5f88e6
mov dword [esp + 0x48], eax
lea eax, [0x689ec0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call fcn.00410180
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x48]
call fcn.004502f0
jmp 0x5f88a4
mov edx, dword [esp + 0x28]
sub edx, ebx
mov eax, edx
jmp 0x5f8855
cmp ebx, 0xa5164854
jne 0x5f8a4f
lea ebp, [0x71da40]
cmp ebp, edx
jne 0x5f8b2f
mov ecx, dword [esp + 0xb0]
jne 0x5f8a4f
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 0x5f8a42
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.00450a54
lea ecx, [0x674840]
mov dword [esp], ecx
call fcn.0040a3f0
mov eax, dword [esp + 4]
lea ecx, [0x60db00]
mov dword [eax], ecx
mov ecx, dword [0x98ef80]
lea edi, [eax + 4]
test ecx, ecx
jne 0x5f8a0f
lea esi, [esp + 0x78]
call fcn.00450a54
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x5f88a4
mov dword [esp + 0x44], eax
lea eax, [0x6871c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.00410180
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, dword [esp + 0x44]
call fcn.004502f0
jmp 0x5f88a4
mov edx, dword [esp + 0x28]
sub edx, ebx
mov eax, edx
jmp 0x5f89bf
cmp ebx, 0xe763bb76
jne 0x5f8b1e
lea ebx, [0x71da00]
cmp ebx, edx
jne 0x5f8b25
mov ecx, dword [esp + 0xb0]
jne 0x5f8b1e
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 0x5f8d79
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebp
lea eax, [0x674540]
mov dword [esp], eax
call fcn.0040a3f0
mov eax, dword [esp + 4]
lea ecx, [0x60da20]
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 [0x98ef80]
neg ecx
sar ecx, 0x1f
and edx, ecx
mov ecx, dword [esp + 0x40]
add ecx, edx
test ebx, ebx
jne 0x5f8aff
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x28], eax
jmp 0x5f88a4
lea edi, [eax + 4]
mov edx, eax
mov eax, ecx
call fcn.004502f0
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 0x28]
mov eax, edx
call fcn.004502f0
jmp 0x5f88a4
mov ecx, edi
jmp 0x5f88a4
mov ecx, 0
jmp 0x5f8a70
mov ecx, 0
jmp 0x5f898a
mov ecx, 0
jmp 0x5f8820
mov eax, ebp
jmp 0x5f8969
mov eax, ebp
jmp 0x5f8b1e
mov ecx, edi
jmp 0x5f88e6
lea edx, [edi + 0x44]
mov ecx, edi
mov edi, edx
call fcn.004502f0
mov edi, ecx
jmp 0x5f87dd
mov eax, edi
mov edi, ebp
mov ecx, eax
mov eax, dword [esp + 0x3c]
call fcn.004502f0
mov edi, ecx
jmp 0x5f87c3
lea ebx, [edi + 0x1c]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.004502f0
mov edi, ecx
jmp 0x5f87a4
lea ebx, [edi + 0xc]
mov eax, edi
mov edi, ebx
mov ecx, eax
lea eax, [0x6b80e3]
call fcn.004502f0
mov edi, ecx
jmp 0x5f8781
mov eax, dword [esp + 0x34]
call fcn.004502f0
lea ebx, [edi + 8]
mov eax, edi
mov edi, ebx
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.004502f0
mov edx, eax
mov edi, ecx
jmp 0x5f8763
lea edx, [edi + 0x7c]
mov eax, edi
mov edi, edx
mov ecx, eax
mov eax, dword [esp + 0x98]
call fcn.004502f0
mov edi, ecx
jmp 0x5f8741
lea edi, [edx + 0x14]
mov eax, ecx
call fcn.004502f0
jmp 0x5f8701
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x5f86c3
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, [0x7203e0]
mov dword [esp], edx
lea edx, [esp + 0x54]
mov dword [esp + 4], edx
call fcn.00407e60
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
jmp 0x5f86c3
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ebx
add esp, 0x90
ret
lea eax, [0x676040]
mov dword [esp], eax
call fcn.0040a3f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x6bfa0b]
mov dword [eax], ecx
mov dword [esp + 0xb4], 0
lea ecx, [0x71db20]
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.00407cf0
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea ecx, [0x6690a0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea eax, [0x6c22d7]
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.004a6560
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, [0x6d589c]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004b54c0
cmp dword [esp + 0x10], 0xffffffff
sete dl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
jmp 0x5f863c
mov ecx, dword [esp + 0x9c]
jmp 0x5f862a
mov eax, esi
mov ecx, edx
call fcn.004503d0
nop
call fcn.0044eab0
jmp fcn.005f85f0