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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x364]
cmp eax, dword [ecx + 8]
jbe 0x5f8fee
sub esp, 0x3e4
mov edx, dword [esp + 0x3e8]
mov eax, dword [edx + 0x3c]
mov ebx, dword [edx + 0x2ac]
add ebx, 0xfffffffc
cmp eax, ebx
jbe 0x5f89e2
mov ecx, dword [0x8e2600]
xor ebx, ebx
jmp 0x5f8a16
mov ecx, dword [edx + 0x28c]
cmp ecx, eax
jb 0x5f8fe8
mov ebx, dword [edx + 0x290]
sub ecx, eax
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
cmp ecx, 3
jbe 0x5f8fde
mov ebp, dword [edx + 0x288]
mov ebx, dword [ebp + ebx]
xor ecx, ecx
test ecx, ecx
jne 0x5f8faa
mov ecx, ebx
and ebx, 0xffff
cmp ebx, 0x454e
je 0x5f8f89
cmp ebx, 0x454c
je 0x5f8f68
cmp ebx, 0x584c
je 0x5f8f47
cmp ebx, 0x5a56
je 0x5f8f26
cmp ecx, 0x4550
jne 0x5f8f05
mov dword [esp + 0x1f4], eax
mov dword [edx + 0x60], 0x4550
lea esi, [edx + 0x64]
mov dword [esp + 0x3e0], esi
lea edi, [esp + 0x3cc]
call fcn.00471bde
lea eax, [0x6a01c0]
mov dword [esp], eax
lea eax, [esp + 0x3cc]
mov dword [esp + 4], eax
call fcn.004e1200
mov eax, dword [esp + 8]
mov dword [esp + 0x1f8], eax
mov ecx, dword [esp + 0x3e8]
mov dword [esp], ecx
lea edx, [0x662d60]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3e0]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x1f4]
lea ebx, [edx + 4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.005f0300
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5f8eec
lea edi, [esp + 0x114]
xor eax, eax
call fcn.004716c8
lea edi, [esp + 0x24]
call fcn.004716c4
mov ecx, dword [esp + 0x1f8]
mov edx, dword [esp + 0x1f4]
lea ebx, [edx + ecx + 4]
mov ebp, dword [esp + 0x3e8]
mov esi, dword [ebp + 0x2ac]
add esi, 0xfffffffe
add ecx, edx
cmp ebx, esi
jbe 0x5f8b3f
mov ecx, dword [0x8e2600]
mov edx, dword [0x8e2604]
mov esi, edx
mov edx, ecx
xor ecx, ecx
jmp 0x5f8b7b
mov edx, dword [ebp + 0x28c]
cmp edx, ebx
jb 0x5f8fd5
mov esi, dword [ebp + 0x290]
sub edx, ecx
sub esi, ecx
lea ecx, [edx - 4]
lea edx, [esi - 4]
neg edx
sar edx, 0x1f
and edx, ebx
cmp ecx, 1
jbe 0x5f8fcb
mov ecx, dword [ebp + 0x288]
movzx ecx, word [ecx + edx]
xor edx, edx
xor esi, esi
test edx, edx
jne 0x5f8ed7
mov dword [esp + 0x20], ebx
cmp cx, 0x10b
je 0x5f8c8c
cmp cx, 0x20b
jne 0x5f8c6b
lea edi, [esp + 0x2dc]
call fcn.004716c4
lea ecx, [0x6ae1a0]
mov dword [esp], ecx
lea edx, [esp + 0x2dc]
mov dword [esp + 4], edx
call fcn.004e1200
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3e8]
mov dword [esp], edx
lea ebx, [0x6649e0]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x24]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.005f0300
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5f8c52
mov eax, dword [esp + 0x3e8]
mov byte [eax + 0x295], 1
lea ecx, [0x6ae1a0]
mov dword [esp], ecx
lea edx, [esp + 0x24]
mov dword [esp + 4], edx
call fcn.00409ff0
mov eax, dword [esp + 8]
lea ecx, [0x6ae1a0]
mov edx, dword [esp + 0x3e8]
mov dword [edx + 0x78], ecx
mov ecx, dword [0x90f128]
test ecx, ecx
je 0x5f8c4a
call fcn.00471470
mov dword [edi], eax
mov ecx, dword [edx + 0x7c]
mov dword [edi + 4], ecx
mov dword [edx + 0x7c], eax
jmp 0x5f8d4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3ec], ecx
mov dword [esp + 0x3f0], eax
add esp, 0x3e4
ret
mov eax, dword [0x8e25e8]
mov ecx, dword [0x8e25ec]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
lea edi, [esp + 0x1fc]
lea esi, [esp + 0x114]
call fcn.004719e0
lea eax, [0x6ae520]
mov dword [esp], eax
lea ecx, [esp + 0x1fc]
mov dword [esp + 4], ecx
call fcn.004e1200
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3e8]
mov dword [esp], ecx
lea edx, [0x664960]
mov dword [esp + 4], edx
lea edx, [esp + 0x114]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.005f0300
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5f8ebe
mov eax, dword [esp + 0x3e8]
mov byte [eax + 0x294], 1
lea ecx, [0x6ae520]
mov dword [esp], ecx
lea edx, [esp + 0x114]
mov dword [esp + 4], edx
call fcn.00409ff0
mov eax, dword [esp + 8]
lea ecx, [0x6ae520]
mov edx, dword [esp + 0x3e8]
mov dword [edx + 0x78], ecx
mov ecx, dword [0x90f128]
test ecx, ecx
je 0x5f8d4a
call fcn.00471470
mov dword [edi], eax
mov ecx, dword [edx + 0x7c]
mov dword [edi + 4], ecx
mov dword [edx + 0x7c], eax
movzx eax, byte [edx + 0x295]
test al, al
je 0x5f8d64
mov ecx, dword [esp + 0x3c]
test ecx, 0xffff
jne 0x5f8d7e
movzx ecx, byte [edx + 0x294]
test cl, cl
je 0x5f8dba
mov ebx, dword [esp + 0x130]
test ebx, 0xffff
je 0x5f8d9f
mov eax, dword [0x8e25f0]
mov ecx, dword [0x8e25f4]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
test cl, cl
je 0x5f8db6
add ebx, dword [esp + 0x14c]
cmp ebx, 0x80000000
jae 0x5f8dec
test al, al
jmp 0x5f8dbc
test al, al
jmp 0x5f8dbc
test al, al
je 0x5f8e9a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x5c]
add eax, ebx
adc ecx, 0
cmp ecx, 0xffff0800
sete al
seta cl
and eax, 1
or ecx, eax
test cl, cl
je 0x5f8e9a
mov eax, dword [edx + 0x278]
mov ecx, dword [edx + 0x274]
inc ecx
mov ebx, dword [edx + 0x270]
cmp eax, ecx
jae 0x5f8e66
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x6765e0]
mov dword [esp + 0x10], eax
call fcn.0046c350
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3e8]
mov dword [ebx + 0x278], eax
mov eax, dword [0x90f128]
test eax, eax
je 0x5f8e58
call fcn.00471470
mov dword [edi], ecx
mov eax, dword [ebx + 0x270]
mov dword [edi + 4], eax
mov dword [ebx + 0x270], ecx
mov eax, edx
mov edx, ebx
mov ebx, ecx
mov ecx, eax
mov dword [edx + 0x274], ecx
lea eax, [ebx + ecx*8 - 4]
mov ebp, dword [0x8e25fc]
lea ecx, [ebx + ecx*8 - 8]
mov ebx, dword [0x8e25f8]
mov dword [eax], ebp
mov eax, dword [0x90f128]
test eax, eax
je 0x5f8e98
call fcn.00471470
mov dword [edi], ebx
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov dword [ecx], ebx
mov byte [edx + 0x299], 1
mov dword [esp + 0x3ec], 0
mov dword [esp + 0x3f0], 0
add esp, 0x3e4
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov dword [esp + 0x3ec], edx
mov dword [esp + 0x3f0], esi
add esp, 0x3e4
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25e0]
mov ecx, dword [0x8e25e4]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25d8]
mov ecx, dword [0x8e25dc]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25d0]
mov ecx, dword [0x8e25d4]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25c8]
mov ecx, dword [0x8e25cc]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25c0]
mov ecx, dword [0x8e25c4]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, dword [0x8e25b8]
mov ecx, dword [0x8e25bc]
mov dword [esp + 0x3ec], eax
mov dword [esp + 0x3f0], ecx
add esp, 0x3e4
ret
mov eax, 1
call fcn.004714e0
mov eax, ebx
mov ecx, edx
call fcn.00471550
mov eax, 3
call fcn.004714e0
call fcn.00471550
nop
call fcn.00470060
jmp fcn.005f89a0