Function at 0x5870a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8de4
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5fc7d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0xf0], eax
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf4], eax
xor al, al
movdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x104], edi
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 0xe7], 0
mov byte [ebp - 0xe8], al
mov byte [ebp - 0xea], al
mov byte [ebp - 0xe6], al
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0x80000000
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp eax, 1
je 0x587447
mov esi, dword [ebp + 0x10]
cmp esi, 0xc
jae 0x587192
push 0
lea eax, [ebp - 0x100]
mov dword [ebp - 0x100], 0
push eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xfc], 0x12
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x184]
push eax
call fcn.005c4b35
test eax, eax
jne 0x5871ad
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push ecx
push esi
push edi
push eax
call fcn.00586c90
add esp, 0x14
jmp 0x58730b
cmp eax, 2
jne 0x58753b
xor al, al
movlpd qword [ebp - 0x140], xmm0
mov byte [ebp - 0xe5], al
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
lea ebx, [ebx]
test al, al
jne 0x5872fe
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push ecx
push esi
push edi
push eax
call fcn.00586c90
add esp, 0x14
mov byte [ebp - 0xe7], 1
mov byte [ebp - 0xe5], 1
jmp 0x5872db
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0
call fcn.0058ccb0
mov al, byte [ebp - 0xe5]
mov ecx, dword [ebp - 0xfc]
jmp 0x5871e0
cmp byte [ebp - 0xe7], 0
je 0x58753b
push 0
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0058c710
push 0xffffffffffffffff
push dword [ebp - 0xf4]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push 0
push 0
push 0xc0000000
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
push eax
movdqu xmmword [ebp - 0x50], xmm0
call fcn.00586410
mov esi, dword [ebp - 0x50]
mov ecx, 1
mov byte [ebp - 4], 0xa
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x5873a2
mov eax, dword [ebp + 0x20]
sub eax, 0
je 0x58736c
dec eax
je 0x587379
dec eax
jne 0x587379
mov edx, dword [ebp - 0x50]
add edx, 8
je 0x587379
mov eax, dword [ebp + 0x24]
xchg dword [edx], eax
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0x50]
push eax
call fcn.0058c4e0
mov dword [ebp - 4], 0xa
mov eax, 2
xchg dword [esi], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
jmp 0x5876ac
cmp eax, 1
je 0x5873e5
cmp eax, 2
je 0x5873e5
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x104], 0x13
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x1dc]
push eax
call fcn.005c4b35
push 0
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0xf4], 9
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x234]
push eax
call fcn.005c4b35
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x3c]
push 0
push 1
mov byte [ebp - 4], 0xe
call fcn.0058c710
push 0
push 0
mov dword [ebp - 4], 0xd
call fcn.005c4b35
mov eax, 0x587431
ret
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x587495
push eax
push dword [edi]
movzx eax, byte [0x6024ad]
lea ecx, [ebp - 0xa4]
push eax
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmmword [ebp - 0x94], xmm0
call fcn.00587ec0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa4]
call fcn.0058c530
lea ecx, [ebp - 0xa4]
jmp 0x587532
cmp eax, 0x80000000
jne 0x5874e1
push eax
push dword [edi]
movzx eax, byte [0x6024ad]
lea ecx, [ebp - 0x84]
push eax
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmmword [ebp - 0x74], xmm0
call fcn.00587ec0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x84]
call fcn.0058c530
mov byte [ebp - 0xe8], 1
lea ecx, [ebp - 0x84]
jmp 0x587532
cmp eax, 0xc0000001
jne 0x58753b
movzx eax, byte [0x6024ad]
lea ecx, [ebp - 0xe4]
push 0x80000000
push dword [edi]
movdqu xmmword [ebp - 0xe4], xmm0
push eax
movdqu xmmword [ebp - 0xd4], xmm0
call fcn.00587ec0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xe4]
call fcn.0058c530
mov byte [ebp - 0xe6], 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0
call fcn.005885b0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x154], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x3c]
call esi
test eax, eax
je 0x5876de
lea ecx, [ebp - 0x154]
call fcn.0058ccb0
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x587565
cmp edx, 1
jne 0x5875ca
test ecx, ecx
jne 0x5875ca
push ecx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], ecx
push eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x114], 0x13
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x1b0]
push eax
call fcn.005c4b35
cmp byte [ebp - 0xe8], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
je 0x5875e9
mov eax, 0x80000000
jmp 0x5875f9
xor eax, eax
cmp byte [ebp - 0xe6], al
setne al
add eax, 0xc0000000
push 0xffffffffffffffff
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x64]
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00586410
mov esi, dword [ebp - 0x64]
mov byte [ebp - 4], 0x10
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
movlpd qword [ebp - 0x130], xmm0
mov dword [ebp - 0x124], 0
lea esp, [esp]
cmp eax, 1
je 0x587649
test eax, eax
jne 0x587658
lea ecx, [ebp - 0x130]
call fcn.0058ccb0
mov eax, dword [esi]
jmp 0x587640
cmp eax, 2
je 0x587696
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x10c], 0x13
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x208]
push eax
call fcn.005c4b35
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0x64]
push eax
call fcn.0058c4e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00588550
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.005885b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c4b26
mov esp, ebp
pop ebp
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x120]
call fcn.00587b60
push 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x260]
call fcn.00587ba0
push 0x5f3550
lea eax, [ebp - 0x260]
push eax
call fcn.005c4b35
int3