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

Disassembly:
push 0xffffffffffffffff
push 0x6666d8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x586cfa
cmp ecx, ebx
je 0x586cfa
lea ecx, [esp + 0x20]
call fcn.0044a6f0
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x88], ebx
lea ebp, [edi + 4]
jb 0x586cdb
mov eax, dword [ebp]
jmp 0x586cdd
mov eax, ebp
push ecx
push ebx
push eax
mov ecx, esi
call fcn.004950e0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x586d1e
lea ecx, [esp + 0x20]
call fcn.004a3570
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.006108ae
add esp, 0x78
ret
mov dword [esp + 0x18], ebx
inc dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.00540670
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ebx, esi
jb 0x586d44
mov ecx, dword [ebp]
jmp 0x586d46
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push eax
add edx, esi
push edx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004950e0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x586d22
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x586cf1
xor ebx, ebx
lea esp, [esp]
push edi
push 0x6b0f7c
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
call fcn.00416f50
mov byte [esp + 0x88], 1
cmp ebx, edi
jne 0x586e03
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
test eax, eax
ja 0x586db3
call fcn.006111cc
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
call fcn.00493a60
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 2
call fcn.00417450
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x88], 1
jb 0x586ee3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00610458
add esp, 4
jmp 0x586ee3
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
lea esi, [ebx - 1]
sar edx, 2
cmp esi, edx
jb 0x586e1a
call fcn.006111cc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
add eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jae 0x586ee3
mov edx, dword [esp + 0x30]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jne 0x586e75
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00493a60
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 3
call fcn.00417450
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.0050f430
jmp 0x586ee3
cmp ebx, edi
jbe 0x586ee3
push esi
lea ecx, [esp + 0x24]
call fcn.0049e6b0
push ebx
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0049e6b0
push esi
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.0049e6b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov eax, dword [eax]
sub edx, ecx
sub edx, dword [edi]
add eax, ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00493a60
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 4
call fcn.00417450
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.0050f430
xor edi, edi
cmp byte [esp + 0x9c], 0
jne 0x586ef3
cmp dword [esp + 0x74], edi
jbe 0x586f01
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push edx
call fcn.0044f650
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 0
jb 0x586f1d
mov eax, dword [esp + 0x64]
push eax
call fcn.00610458
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jbe 0x586d70
cmp ecx, edi
je 0x586f40
push ecx
call fcn.00610458
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00610458
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x586cfc