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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60ecf8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov dword [esp + 0x54], 0x4ca328
mov ecx, dword [ebx + 0xcc]
mov eax, 0x92492493
sub ecx, dword [ebx + 0xc8]
xor esi, esi
imul ecx
mov dword [esp + 0x80], 0
add edx, ecx
mov dword [esp + 0x20], esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5878f3
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
mov eax, dword [ebx + 0xc8]
cmp dword [eax + ecx + 0x14], 0
je 0x5878bc
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov dword [esp + 0x68], 0
cmovae eax, dword [esp + 0x58]
push 0x5b
mov byte [eax], 0
mov esi, dword [ebx + 0xc8]
add esi, ecx
lea ecx, [esp + 0x58]
call fcn.0054bc00
mov edi, eax
test esi, esi
je 0x587508
add esi, 4
jmp 0x58750a
xor esi, esi
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 4]
call fcn.004ecec0
push 0x5d
mov ecx, edi
call fcn.0054bc00
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x58]
push 0xffffffffffffffff
push 0
add esi, 4
push eax
mov ecx, esi
call fcn.004ecec0
call fcn.005433a0
test eax, eax
je 0x587545
add eax, 4
jmp 0x587547
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004ecec0
mov eax, dword [ebx + 0xc8]
lea ecx, [ebx + 0xd4]
add eax, dword [esp + 0x18]
xorps xmm0, xmm0
push eax
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
call fcn.00582a00
push eax
lea ecx, [esp + 0x2c]
call fcn.0054cda0
mov eax, dword [ebx + 0xc8]
lea ecx, [ebx + 0xc0]
add eax, dword [esp + 0x18]
xorps xmm0, xmm0
push eax
mov byte [esp + 0x84], 1
movq qword [esp + 0x50], xmm0
call fcn.00582970
lea ecx, [esp + 0x17]
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00582390
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x80], 2
cmp edi, ebx
je 0x587827
lea ebx, [edi + 0x14]
mov dword [esp + 0x1c], ebx
lea esp, [esp]
cmp dword [ebx], 0
je 0x58780b
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x4c]
cmovae eax, dword [esp + 0x58]
mov byte [eax], 0
lea eax, [ebx - 0x14]
push eax
call fcn.00588290
mov esi, eax
cmp esi, dword [esp + 0x4c]
je 0x587776
mov eax, dword [ebx]
mov byte [esp + 0x44], 0x20
test eax, eax
je 0x587684
cmp eax, 0xffffffff
jbe 0x587630
or ecx, 0xffffffff
jmp 0x587633
lea ecx, [eax - 1]
cmp dword [ebx + 4], 0x10
jb 0x587641
mov eax, dword [ebx - 0x10]
add ebx, 0xfffffff0
jmp 0x587646
add ebx, 0xfffffff0
mov eax, ebx
lea edi, [eax + ecx]
movsx eax, byte [edi]
push 1
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005e10a0
add esp, 0xc
test eax, eax
je 0x587684
mov ecx, ebx
call fcn.004ec8f0
cmp edi, eax
je 0x587684
movsx eax, byte [edi - 1]
dec edi
push 1
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005e10a0
add esp, 0xc
test eax, eax
jne 0x587660
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x14]
mov byte [esp + 0x48], 0x20
test eax, eax
je 0x587703
cmp eax, 0xffffffff
jbe 0x58769d
or ecx, 0xffffffff
jmp 0x5876a0
lea ecx, [eax - 1]
cmp dword [ebx + 0x14], 0x10
jb 0x5876aa
mov eax, dword [ebx]
jmp 0x5876ac
mov eax, ebx
lea edi, [eax + ecx]
movsx eax, byte [edi]
push 1
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005e10a0
add esp, 0xc
test eax, eax
je 0x5876ea
mov ecx, ebx
call fcn.004ec8f0
cmp edi, eax
je 0x587703
movsx eax, byte [edi - 1]
dec edi
push 1
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005e10a0
add esp, 0xc
test eax, eax
jne 0x5876c6
cmp dword [ebx + 0x14], 0x10
jb 0x5876f4
mov eax, dword [ebx]
jmp 0x5876f6
mov eax, ebx
sub edi, eax
cmp edi, 0xffffffff
je 0x587703
inc edi
lea eax, [esi + 0x10]
jmp 0x587709
mov edi, dword [esi + 0x24]
lea eax, [esi + 0x10]
xor ecx, ecx
mov edx, edi
test eax, eax
cmovne ecx, ebx
cmp dword [ecx + 0x10], edi
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0x10
mov dword [esp + 0x24], edx
jb 0x587725
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x1c]
cmp dword [ebx], edi
cmovb edi, dword [ebx]
cmp dword [ebx + 4], 0x10
jb 0x587739
mov eax, dword [ebx - 0x10]
jmp 0x58773c
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], eax
cmp edi, edx
mov eax, edx
cmovb eax, edi
push eax
push ecx
push dword [esp + 0x24]
call fcn.004f3050
add esp, 0xc
test eax, eax
jne 0x58776f
mov ecx, dword [esp + 0x24]
cmp edi, ecx
jae 0x587766
or eax, 0xffffffff
jmp 0x58776d
xor eax, eax
cmp edi, ecx
setne al
test eax, eax
sets al
test al, al
je 0x5877ad
lea eax, [ebx - 0x14]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x28]
push eax
push 0x638384
call fcn.00564ea0
push eax
add eax, 0x10
lea ecx, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x48]
push eax
call fcn.005814c0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x10]
push eax
lea ecx, [esp + 0x64]
call fcn.004ecec0
add esi, 0x2c
je 0x5877c8
lea eax, [esi + 4]
jmp 0x5877ca
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.004ecec0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x58]
push 0xffffffffffffffff
push 0
add esi, 4
push eax
mov ecx, esi
call fcn.004ecec0
call fcn.005433a0
test eax, eax
je 0x5877fd
add eax, 4
jmp 0x5877ff
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004ecec0
add ebx, 0x1c
mov dword [esp + 0x1c], ebx
lea eax, [ebx - 0x14]
cmp eax, dword [esp + 0x2c]
jne 0x5875e0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
call fcn.005433a0
test eax, eax
je 0x587835
add eax, 4
jmp 0x587837
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004ecec0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x84], 1
push dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.00588550
push dword [esp + 0x4c]
call fcn.005df995
add esp, 4
mov byte [esp + 0x80], 0
test edi, edi
je 0x5878b0
mov esi, edi
cmp edi, ebx
je 0x58788f
mov edi, edi
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x587880
push edi
call fcn.005df995
add esp, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
add ecx, 0x1c
mov eax, 0x92492493
mov dword [esp + 0x18], ecx
inc esi
mov ecx, dword [ebx + 0xcc]
sub ecx, dword [ebx + 0xc8]
imul ecx
mov dword [esp + 0x20], esi
add edx, ecx
mov ecx, dword [esp + 0x18]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x5874c0
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x54], 0x4ca328
jb 0x58790e
push dword [esp + 0x58]
call fcn.005df995
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005e0482
mov esp, ebp
pop ebp
ret 4