Function at 0x491d90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbd08
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x98], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x9c], esi
push eax
push 0x790eb0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
call fcn.00424cc0
mov dword [ebp - 4], 0
mov dword [edi + 0x5ddc], 0
mov dword [edi + 0x5dd8], 0
mov dword [edi + 0x5de0], 0
mov dword [edi + 0x5de4], 0
mov dword [edi + 0x5de8], 0
mov dword [edi + 0x5dec], 0
mov dword [edi + 0x5df0], 0
xor edi, edi
nop
cmp word [esi], 0
jne 0x491e4a
xor eax, eax
jmp 0x491e5f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491e50
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00424cc0
test edi, edi
jle 0x49200d
xor eax, eax
mov ecx, 0x64
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [edi - 1]
cdq
idiv ecx
lea eax, [ebp - 0x34]
movq qword [ebp - 0x22], xmm0
push edx
push str..a_02d
push eax
movdqu xmmword [ebp - 0x32], xmm0
call fcn.0047ea60
xor eax, eax
mov dword [ebp - 0x68], 7
add esp, 0xc
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
cmp word [ebp - 0x34], ax
jne 0x491ec6
xor ecx, ecx
jmp 0x491edf
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491ed0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00424cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
push 4
xor eax, eax
mov dword [ebp - 0x50], 7
push str..alz
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
call fcn.00424cc0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x94]
call fcn.00435e20
mov esi, eax
add esp, 8
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x491fa6
cmp dword [ebp - 0x38], 8
jb 0x491f4a
push dword [ebp - 0x4c]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
cmp dword [esi + 0x14], 8
jae 0x491f7c
mov eax, dword [esi + 0x10]
inc eax
je 0x491f87
add eax, eax
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.006b3d50
add esp, 0xc
jmp 0x491f87
mov eax, dword [esi]
mov dword [ebp - 0x4c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x80], 8
jb 0x491fba
push dword [ebp - 0x94]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [ebp - 0x80], 7
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], ax
jb 0x491fe5
push dword [ebp - 0x64]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
jb 0x49200d
push dword [ebp - 0x7c]
call fcn.006b31f8
add esp, 4
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x4c]
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x98]
lea ecx, [edi + edi*2]
mov dword [edx + ecx*8 + 0x18], eax
lea esi, [edx + ecx*8]
cmp eax, 0xffffffff
je 0x4920a3
lea ecx, [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa0]
inc dword [ecx + 0x5ddc]
xor ecx, ecx
add ecx, eax
mov dword [esi + 0x20], ecx
adc edx, 0
mov dword [esi + 0x24], edx
test edi, edi
jne 0x492082
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x28], edi
jmp 0x492089
mov dword [esi + 0x28], 8
inc edi
mov dword [esi + 0x2c], 0x10
mov esi, dword [ebp - 0x9c]
cmp edi, 0x3e8
jl 0x491e40
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x5ddc]
test eax, eax
jne 0x4920b7
xor esi, esi
jmp 0x4920c7
lea eax, [eax + eax*2]
mov esi, 1
mov dword [ecx + eax*8 + 0x14], 0
cmp dword [ebp - 0x38], 8
jb 0x4920d8
push dword [ebp - 0x4c]
call fcn.006b31f8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 4