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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1bc
mov eax, dword [esp + 0x1d0]
fld qword [esp + 0x1e4]
lea esi, [esp + 0x198]
lea ebp, [esp + 0x12c]
mov edx, dword [esp + 0x1f0]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x1d4]
mov dword [esp + 0x16c], edx
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x1d8]
fstp qword [esp + 0xe8]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x1dc]
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x1e0]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x204]
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x208]
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x20c]
mov edx, dword [esp + 0x21c]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x210]
mov dword [esp + 0x13c], edx
mov edx, dword [esp + 0x228]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x214]
mov dword [esp + 0x134], edx
mov edx, dword [esp + 0x240]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x218]
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0x24c]
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x224]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x22c]
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x230]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x234]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x238]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x23c]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x244]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x248]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x250]
mov dword [esp + 8], esi
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x254]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x264]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x258]
mov dword [esp + 0xf4], edx
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x25c]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x260]
mov dword [esp + 0xf0], eax
mov eax, dword [0xd3f044]
mov dword [esp + 0x1ac], eax
xor eax, eax
lea eax, [esp + 0x18f]
mov dword [esp + 4], eax
lea eax, [esp + 0x190]
mov dword [esp], eax
call fcn.005044e0
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx + 0x6af7c]
test eax, eax
je 0x5863bd
lea edi, [esp + 0x194]
mov dword [esp + 0xd8], edi
cmp eax, 2
ja 0x585d05
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.005045f0
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00504630
mov edx, dword [esp + 0x190]
mov eax, dword [ebx + 0x6af70]
test edx, edx
je 0x585cb8
cmp eax, dword [ebx + 0x6af84]
jae 0x585cb8
mov ecx, dword [ebx + 0x6af74]
sub ecx, edx
cmp ecx, 0x7efa
ja 0x585cb8
mov eax, dword [ebx + 0x6af8c]
cmp dword [ebx + 0x6af7c], eax
jb 0x5863b0
lea eax, [esp + 0x19c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x54], eax
lea eax, [esp + 0x190]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x100]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x114]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x120]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x128]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x140]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x144]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x148]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x150]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x158]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x15c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x160]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x164]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x168]
mov dword [esp + 8], eax
lea eax, [esp + 0x174]
mov dword [esp + 4], eax
lea eax, [esp + 0x17c]
mov dword [esp], eax
call fcn.005046e0
lea eax, [esp + 0x19c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00504720
mov ebx, dword [esp + 0x12c]
mov eax, dword [esp + 0x198]
cmp dword [ebx + 0x6af7c], eax
jb 0x586398
cmp eax, 3
je 0x586370
mov eax, dword [ebx + 0x6af70]
lea esi, [esi]
cmp eax, 2
jbe 0x585cca
cmp eax, dword [esp + 0x198]
jae 0x585f20
cmp byte [esp + 0x18f], 0
mov eax, dword [ebx + 0x6af74]
jne 0x585d30
mov byte [esp + 0x18f], 1
add eax, 1
mov dword [ebx + 0x6af74], eax
mov eax, dword [ebx + 0x6af7c]
sub eax, 1
mov dword [ebx + 0x6af7c], eax
cmp eax, 0x105
jbe 0x5861f0
lea eax, [esp + 0x190]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00504530
lea eax, [esp + 0x190]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00504590
jmp 0x585b20
movzx eax, byte [ebx + eax + 0x1af63]
mov edx, ebx
call fcn.00585460
test al, al
jne 0x585d58
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx + 0x6af74]
jmp 0x585ce2
mov eax, dword [esp + 0x12c]
xor ebx, ebx
fld qword [esp + 0x130]
fld qword [esp + 0x138]
fld qword [esp + 0x168]
mov edx, dword [eax + 0x6af68]
mov edi, dword [esp + 0x104]
mov dword [esp + 0x70], eax
vmovsd xmm1, qword [esp + 0x118]
lea ecx, [eax + edx + 0x1af64]
test edx, edx
fstp qword [esp + 0xc8]
fxch st(1)
cmovns ebx, ecx
mov ecx, dword [esp + 0x160]
fst qword [esp + 0xb0]
fst qword [esp + 0xa8]
fxch st(1)
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x17c]
fst qword [esp + 0xa0]
fxch st(1)
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x178]
mov dword [esp + 0xd0], ebx
mov ebx, dword [esp + 0x164]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x124]
fst qword [esp + 0x88]
fxch st(1)
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xd0]
fstp qword [esp + 0x80]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xdc]
fst qword [esp + 0x74]
vmovsd qword [esp + 0x64], xmm1
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x9c], edi
fst qword [esp + 0x54]
mov ecx, dword [esp + 0x128]
mov dword [esp + 4], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xfc]
fstp qword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edi
mov eax, dword [eax + 0x6af74]
mov dword [esp], eax
call fcn.004026d0
mov dword [esp + 0xc], 0
vmovsd xmm0, qword [esp + 0xc8]
vmovsd xmm2, qword [esp + 0xe8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x2c], ebx
vmovsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x158]
vmovsd qword [esp + 0x24], xmm2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x150]
vmovsd qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x170]
mov dword [esp], eax
call fcn.00586ad0
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
test edx, edx
jne 0x586350
mov eax, dword [ebx + 0x6af74]
mov dword [ebx + 0x6af68], eax
jmp 0x585ce2
lea eax, [esp + 0x1a0]
mov dword [esp], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x19c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18e]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], eax
call fcn.005047c0
mov dword [esp], ebp
call fcn.00504840
mov edi, dword [esp + 0x1a0]
jmp 0x585f81
mov dword [esp], ebp
call fcn.00504990
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx + 0x6af70]
test eax, eax
je 0x585fb0
mov dword [esp], ebp
call fcn.00504870
mov eax, dword [esp + 0x12c]
cmp edi, dword [eax + 0x6af74]
jb 0x585f68
lea eax, [esp + 0x190]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.005048f0
jmp 0x585f68
lea eax, [esp + 0x18f]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00504ab0
mov dword [esp], esi
call fcn.00504af0
cmp byte [esp + 0x18e], 0
je 0x5861d8
mov eax, dword [ebx + 0x6af68]
test eax, eax
jns 0x5864c0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0xf8], 0
fld qword [esp + 0x108]
fld qword [esp + 0x168]
mov dword [esp + 0x70], ebx
fld qword [esp + 0x130]
mov edx, dword [esp + 0x114]
mov edi, dword [esp + 0x154]
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x124]
fstp qword [esp + 0xc8]
fld qword [esp + 0x118]
vmovsd xmm3, qword [esp + 0xc8]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x178]
vmovsd qword [esp + 0x88], xmm3
fstp qword [esp + 0xd0]
fld qword [esp + 0xf0]
vmovsd xmm4, qword [esp + 0xd0]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x158]
vmovsd qword [esp + 0x80], xmm4
fstp qword [esp + 0xe0]
fxch st(1)
fst qword [esp + 0xb0]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x114]
fst qword [esp + 0xa8]
fxch st(1)
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xf8]
fst qword [esp + 0xa0]
fst qword [esp + 0x74]
fxch st(1)
fstp qword [esp + 0x64]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xdc]
vmovsd xmm5, qword [esp + 0xe0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x19c]
fstp qword [esp + 0x54]
mov dword [esp + 0x48], edx
vmovsd qword [esp + 0x40], xmm5
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x6af74]
mov dword [esp + 0xf8], ecx
mov dword [esp], eax
call fcn.004026d0
mov ecx, dword [esp + 0xf8]
vmovsd xmm4, qword [esp + 0xd0]
mov dword [esp + 0x20], edi
vmovsd xmm5, qword [esp + 0xe0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 8], ecx
vmovsd xmm3, qword [esp + 0xc8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x17c]
vmovsd qword [esp + 0x30], xmm4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x150]
vmovsd qword [esp + 0x24], xmm5
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x104]
vmovsd qword [esp + 0x14], xmm3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.00586ad0
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x586350
mov eax, dword [ebx + 0x6af74]
mov dword [ebx + 0x6af68], eax
mov eax, dword [ebx + 0x6af7c]
cmp eax, 0x105
ja 0x585d05
lea esi, [esi]
mov eax, dword [esp + 0xfc]
fld qword [esp + 0x138]
fld qword [esp + 0x118]
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x144]
mov edi, dword [esp + 0x19c]
mov edx, dword [esp + 0x178]
mov dword [esp + 0x9c], ecx
vmovsd xmm6, qword [esp + 0xf0]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x15c]
fst qword [esp + 0x88]
vmovsd xmm7, qword [esp + 0x168]
vmovsd qword [esp + 0x94], xmm6
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x148]
fst qword [esp + 0x80]
fxch st(1)
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x170]
vmovsd qword [esp + 0x6c], xmm7
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x164]
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x114]
vmovsd xmm6, qword [esp + 0x130]
mov dword [esp + 0x2c], ebx
vmovsd xmm7, qword [esp + 0x108]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x120]
fst qword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x110]
fstp qword [esp + 0x30]
mov dword [esp], eax
vmovsd qword [esp + 0x20], xmm6
fstp qword [esp + 0x14]
vmovsd qword [esp + 8], xmm7
mov dword [esp + 0x48], edx
call fcn.005866c0
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x585af1
lea esi, [esi]
mov eax, dword [esp + 0x1ac]
sub eax, dword [0xd3f044]
jne 0x5864f4
add esp, 0x1bc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x6af74]
sub eax, dword [ebx + 0x6af78]
cmp eax, 0x1000
jbe 0x585caf
mov dword [esp], esi
call fcn.00504790
jmp 0x585caf
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00504750
mov eax, dword [esp + 0x198]
jmp 0x585ca6
mov dword [esp], ebp
call fcn.005046a0
jmp 0x585b8a
lea eax, [esp + 0x1a8]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x58], eax
lea eax, [esp + 0x19c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18f]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x114]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x118]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x124]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x130]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x150]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x154]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x158]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x15c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x164]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x168]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x170]
mov dword [esp + 8], eax
lea eax, [esp + 0x174]
mov dword [esp + 4], eax
lea eax, [esp + 0x178]
mov dword [esp], eax
call fcn.00504260
jmp 0x586350
lea edx, [esp + 0x1a4]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 0xc8], eax
call fcn.00504b20
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xc8]
jmp 0x585ffd
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x1c
mov ecx, dword [0xd3f044]
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
sub ecx, dword [0xd3f044]
jne 0x586534
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp dword [sym.imp.msvcrt.dll_difftime]
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop