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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x5875e5
sub esp, 0x94
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x20]
lea edx, [0x5a7220]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [0x5df3b4]
mov dword [esp + 8], ecx
call fcn.0040c7f0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
movzx eax, word [esp + 0x9c]
mov word [esp + 4], ax
call fcn.00515370
mov eax, dword [esp + 8]
test eax, eax
je 0x587536
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [eax]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00405360
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
test eax, eax
je 0x5874fd
cmp dword [eax + 8], 0x382e7edf
jne 0x5874c1
lea ebx, [0x59f6e0]
cmp ebx, eax
jne 0x5874c1
mov ebp, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx]
xor eax, eax
xor ecx, ecx
test eax, eax
jne 0x587496
test ebp, ebp
jbe 0x5875db
cmp byte [edi], 5
jne 0x58745f
cmp ebp, 1
jbe 0x5875cf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], eax
movzx ebx, byte [edi + 1]
cmp bl, 3
jbe 0x587452
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea eax, [0x5a5ba0]
mov dword [esp + 0x84], eax
lea ecx, [0x60e740]
mov dword [esp + 0x88], ecx
movzx ecx, byte [edi + 1]
lea edx, [0x5a5da0]
mov dword [esp + 0x8c], edx
lea ebx, [0x6eccc0]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004d12d0
movzx ebx, byte [0x71e742]
test bl, bl
je 0x586ec9
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea edx, [0x5a5ba0]
mov dword [esp + 0x84], edx
lea ebx, [0x60e748]
mov dword [esp + 0x88], ebx
mov ecx, dword [0x6fced4]
mov ebx, dword [0x6fced0]
mov ebp, dword [esp + 0x70]
movzx esi, byte [ebp + 1]
dec esi
xchg esi, ebx
movzx eax, bl
xchg esi, ebx
cmp eax, ecx
jae 0x5875ca
lea eax, [ebx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x5a5ba0]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea eax, [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004d12d0
mov ebx, dword [esp + 0x70]
cmp byte [ebx + 1], 1
jne 0x58741b
mov ecx, dword [esp + 0x44]
cmp ecx, 3
jbe 0x5875c0
movzx ebp, byte [ebx + 3]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jne 0x5873b7
mov eax, 0xa
mov dword [esp + 0x3c], eax
cmp ecx, eax
jne 0x58715e
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
cmp ecx, 3
jbe 0x5875ac
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], ebx
movzx edi, byte [ebx + 3]
xchg edi, eax
cmp al, 1
xchg edi, eax
jne 0x5870c0
cmp edx, 8
jb 0x5875a2
lea eax, [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], 4
lea eax, [edx - 4]
mov dword [esp + 8], eax
call fcn.004f8210
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
cmp edx, ebx
jb 0x587578
lea ebp, [ebx - 2]
cmp ebx, ebp
jb 0x58756f
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], eax
sub edx, ebx
lea eax, [edx + 2]
neg eax
sar eax, 0x1f
and ebp, eax
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax + ebp + 1]
movzx eax, byte [eax + ebp]
shl eax, 8
or ecx, eax
movzx eax, cx
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], 0xa
call fcn.004a1b40
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov byte [esp + 8], 0x3a
call fcn.00402960
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x587078
mov dword [esp], 0
lea eax, [0x5cfd2b]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
lea eax, [0x5cfdb0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
call fcn.00448780
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xac], eax
add esp, 0x94
ret
mov dword [esp], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
lea eax, [0x5cfd1f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.00448720
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x58704d
xchg edi, eax
cmp al, 3
xchg edi, eax
jne 0x58711e
cmp ecx, 4
jbe 0x58758e
movzx edi, byte [ebx + 4]
add edi, 5
xchg edi, eax
movzx ecx, al
xchg edi, eax
cmp edx, ecx
jb 0x587589
cmp ecx, 5
jb 0x58757f
mov dword [esp], 0
lea eax, [edx - 5]
neg eax
sar eax, 0x1f
and eax, 5
add eax, ebx
mov dword [esp + 4], eax
lea eax, [ecx - 5]
mov dword [esp + 8], eax
call fcn.00448840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x586f63
xchg edi, eax
cmp al, 4
xchg edi, eax
jne 0x587155
cmp edx, 0x14
jb 0x587598
lea eax, [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], 0x10
lea eax, [edx - 4]
mov dword [esp + 8], eax
call fcn.004f8210
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x586f63
xor ecx, ecx
xor eax, eax
jmp 0x586f63
jge 0x587380
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x20]
lea ecx, [0x5a7220]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x5df3b4]
mov dword [esp + 8], eax
call fcn.0040c7f0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
movzx eax, word [esp + 0x9c]
mov word [esp + 4], ax
call fcn.00515370
mov eax, dword [esp + 8]
test eax, eax
je 0x58734f
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [eax]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00405360
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
test eax, eax
je 0x58731e
cmp dword [eax + 8], 0x382e7edf
jne 0x5872ea
lea edx, [0x59f6e0]
cmp edx, eax
jne 0x5872ea
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
xor edx, edx
xor ebx, ebx
test edx, edx
jne 0x5872bf
mov dword [esp + 0x60], ebx
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x44]
lea esi, [ebp + eax]
mov dword [esp + 0x4c], esi
mov edi, dword [esp + 0x48]
cmp edi, esi
jb 0x587279
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x74]
lea ebx, [edx + ebp]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0045eba0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x60]
jmp 0x586f10
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], ecx
lea eax, [0x5a5da0]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
call fcn.00445360
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x74], edi
mov edi, eax
mov eax, dword [esp + 0x38]
jmp 0x587241
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ebx
add esp, 0x94
ret
lea edx, [0x5aa0a0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004095e0
movzx eax, byte [esp + 0x14]
test al, al
je 0x58731e
mov edx, dword [0x7013a0]
mov ebx, dword [0x7013a4]
xor eax, eax
xor ecx, ecx
jmp 0x58720d
nop
lea eax, [0x5abc80]
mov dword [esp], eax
call fcn.0040b910
mov ebx, dword [esp + 4]
mov dword [ebx + 4], 0xf
lea eax, [0x5d25b3]
mov dword [ebx], eax
lea edx, [0x61098c]
xor eax, eax
xor ecx, ecx
jmp 0x58720d
nop
lea eax, [0x5abc80]
mov dword [esp], eax
call fcn.0040b910
mov ebx, dword [esp + 4]
mov dword [ebx + 4], 0xe
lea eax, [0x5d20e6]
mov dword [ebx], eax
lea edx, [0x61098c]
xor eax, eax
xor ecx, ecx
jmp 0x58720d
mov eax, dword [0x7012f0]
mov ecx, dword [0x7012f4]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x94
ret
xchg ebp, eax
cmp al, 3
xchg ebp, eax
jne 0x5873d3
cmp ecx, 4
jbe 0x5875b6
movzx ebp, byte [ebx + 4]
lea eax, [ebp + 7]
jmp 0x586ef8
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jne 0x5873e4
mov eax, 0x16
jmp 0x586ef8
mov eax, dword [0x7012d0]
mov ecx, dword [0x7012d4]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x94
ret
mov eax, dword [0x7012e0]
mov ecx, dword [0x7012e4]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x94
ret
test bl, bl
je 0x586d7f
jmp 0x586e05
mov eax, dword [0x7012f8]
mov ecx, dword [0x7012fc]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x94
ret
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x94
ret
lea edx, [0x5aa0a0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004095e0
movzx eax, byte [esp + 0x14]
test al, al
je 0x5874fd
mov eax, dword [0x7013a0]
mov ecx, dword [0x7013a4]
lea ebx, [0x59f6e0]
xor ebp, ebp
xor edi, edi
xor esi, esi
jmp 0x586d3c
nop
lea eax, [0x5abc80]
mov dword [esp], eax
call fcn.0040b910
mov ecx, dword [esp + 4]
mov dword [ecx + 4], 0xf
lea eax, [0x5d25b3]
mov dword [ecx], eax
lea ebx, [0x59f6e0]
xor ebp, ebp
xor edi, edi
xor esi, esi
lea eax, [0x61098c]
jmp 0x586d3c
nop
lea eax, [0x5abc80]
mov dword [esp], eax
call fcn.0040b910
mov ecx, dword [esp + 4]
mov dword [ecx + 4], 0xe
lea eax, [0x5d20e6]
mov dword [ecx], eax
lea ebx, [0x59f6e0]
xor ebp, ebp
xor edi, edi
xor esi, esi
lea eax, [0x61098c]
jmp 0x586d3c
mov eax, ebp
mov ecx, ebx
call fcn.0045e300
mov ecx, ebx
call fcn.0045e2e0
mov eax, 5
call fcn.0045e300
call fcn.0045e2e0
mov eax, 4
call fcn.0045e2a0
mov ecx, 0x14
call fcn.0045e2e0
mov ecx, 8
call fcn.0045e2e0
mov eax, 3
call fcn.0045e2a0
mov eax, 4
call fcn.0045e2a0
mov eax, 3
call fcn.0045e2a0
call fcn.0045e2a0
mov eax, 1
mov ecx, ebp
call fcn.0045e2a0
xor eax, eax
mov ecx, ebp
call fcn.0045e2a0
nop
call fcn.0045ccc0
jmp fcn.00586c70