Function at 0x77b770
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov dword [esi + 0x138], ebp
mov dword [esi + 0x13c], esp
mov dword [esi + 0x148], 0xffffffff
lea eax, [esi + 0x140]
mov dword [esi + 0x144], 0x77d360
mov ecx, dword fs:[0]
mov dword [esi + 0x140], ecx
mov dword fs:[0], eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
pxor xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, 0x2ac18000
mov ebx, dword [esi + 4]
add ebx, eax
mov eax, 0xfe624e21
mov edi, dword [esi + 8]
adc edi, eax
shrd ebx, edi, 1
shr edi, 1
mov ecx, ebx
add ecx, edi
adc ecx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ecx, eax
sub ebx, ecx
sbb edi, 0
mov eax, ebx
mov ecx, 0xcccccccd
mul ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x77b8ed
imul eax, ebx, 0xcccccccc
mov ecx, dword [esi + 0x18]
add ecx, eax
imul eax, edi, 0xcccccccd
add eax, ecx
mov dword [esi + 0x18], eax
nop
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, eax
or edx, ecx
jne 0x77b90c
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [esi + 4]
mov eax, 0x2ac18000
add ebx, eax
mov edi, dword [esi + 8]
mov eax, 0xfe624e21
adc edi, eax
shrd ebx, edi, 1
shr edi, 1
mov ecx, ebx
add ecx, edi
adc ecx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ecx, eax
sub ebx, ecx
sbb edi, 0
mov eax, ebx
mov ecx, 0xcccccccd
mul ecx
imul ecx, ebx, 0xcccccccc
add ecx, edx
imul edx, edi, 0xcccccccd
add edx, ecx
sub eax, dword [esi + 0x1c]
sbb edx, dword [esi + 0x18]
cmp eax, 0x11e1a301
sbb edx, 0
jae 0x77bbd0
lea ecx, [esi + 0x20]
call fcn.00775900
lea eax, [esi + 0x40]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x77b850
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
push eax
call fcn.0077a7a0
add esp, 4
mov dword [esi + 8], eax
lea edi, [esi + 0x10c]
jmp 0x77bbfa
xor eax, 1
or eax, ecx
je 0x77bbe6
movzx eax, byte [ebp + 0x20]
or eax, 0xc0000000
cmp byte [ebp + 0x1c], 0
mov edi, 0x80000000
cmove edi, eax
lea ecx, [esi + 0x20]
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0
push 0
push edi
push dword [ebp + 8]
call fcn.007741a0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [eax]
cmp eax, 2
je 0x77bb48
mov dword [esi + 0x54], edi
mov dword [esi + 0x148], 3
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, 0x2ac18000
mov ecx, dword [esi + 4]
add ecx, eax
mov eax, 0xfe624e21
mov ebx, dword [esi + 8]
adc ebx, eax
shrd ecx, ebx, 1
shr ebx, 1
mov edi, ecx
add edi, ebx
adc edi, 0
mov eax, edi
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub edi, eax
sub ecx, edi
sbb ebx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
mov dword [esi + 0x18], eax
imul eax, ecx, 0xcccccccc
add eax, edx
imul ecx, ebx, 0xcccccccd
add ecx, eax
mov dword [esi + 0x58], ecx
pxor xmm0, xmm0
movdqa xmmword [esi + 0x40], xmm0
nop word [eax + eax]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
cmp eax, 2
je 0x77ba62
cmp eax, 3
je 0x77bc41
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esi + 4]
mov eax, 0x2ac18000
add ecx, eax
mov ebx, dword [esi + 8]
mov eax, 0xfe624e21
adc ebx, eax
shrd ecx, ebx, 1
shr ebx, 1
mov edi, ecx
add edi, ebx
adc edi, 0
mov eax, edi
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub edi, eax
sub ecx, edi
sbb ebx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
imul ecx, ecx, 0xcccccccc
add ecx, edx
imul edx, ebx, 0xcccccccd
add edx, ecx
sub eax, dword [esi + 0x18]
sbb edx, dword [esi + 0x58]
cmp eax, 0x11e1a301
sbb edx, 0
jae 0x77bc12
lea ecx, [esi + 0x40]
call fcn.00775900
jmp 0x77b9d0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
movdqa xmm0, xmmword [0x9d9830]
movdqu xmmword [esi + 0x20], xmm0
mov edx, dword [esi + 0x30]
mov dword [esi + 0x30], 0xffffffff
test eax, eax
je 0x77ba9c
sub eax, ecx
mov dword [esi + 0x148], 0
push eax
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0x1c]
cmp edx, 0xffffffff
je 0x77bab2
mov dword [esi + 0x148], 0
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x148], 3
lea ecx, [esi + 4]
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [esi + 0x54]
push dword [ebp + 8]
call fcn.007741a0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esi + 4], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x10]
movq xmm0, qword [esi + 0x28]
movsd xmm1, qword [esi + 8]
mov dword [esi + 8], edx
movsd qword [esi + 0x24], xmm1
movq qword [esi + 0xc], xmm0
mov dword [esi + 0x2c], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x30], edx
test eax, eax
je 0x77bb32
movd ecx, xmm0
sub eax, ecx
mov dword [esi + 0x148], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 4], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0xffffffff
je 0x77bb48
mov dword [esi + 0x148], 1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 4]
movsd xmm1, qword [esi + 0x24]
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x2c]
movq xmm0, qword [edi + 8]
movsd qword [edi + 4], xmm1
mov dword [edi + 0xc], ecx
movq qword [esi + 0x28], xmm0
mov ecx, dword [edi + 0x10]
mov edx, dword [esi + 0x30]
mov dword [edi + 0x10], edx
mov dword [esi + 0x30], ecx
test eax, eax
je 0x77bba6
movd ecx, xmm0
sub eax, ecx
mov dword [esi + 0x148], 2
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x20], 0
mov ecx, dword [esi + 0x30]
cmp ecx, 0xffffffff
je 0x77bbbc
mov dword [esi + 0x148], 2
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x140]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
mov dword [esi + 8], 0x13
lea edi, [esi + 0xe0]
jmp 0x77bbfa
mov dword [esi + 4], 0
mov dword [esi + 8], 0x13
lea edi, [esi + 0xb4]
mov ecx, edi
push 0
lea eax, [esi + 4]
push eax
call fcn.00774910
push 0xa2a648
push edi
call fcn.0093533b
mov dword [esi + 4], 0
mov dword [esi + 8], 0x13
lea ecx, [esi + 0x5c]
push 0
lea eax, [esi + 4]
push eax
call fcn.00774910
push 0xa2a648
lea eax, [esi + 0x5c]
push eax
call fcn.0093533b
add esp, 8
jmp 0x77bc74
mov dword [esi + 4], 0
mov dword [esi + 8], 0x13
lea ecx, [esi + 0x88]
push 0
lea eax, [esi + 4]
push eax
call fcn.00774910
push 0xa2a648
lea eax, [esi + 0x88]
push eax
call fcn.0093533b
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
lea ecx, [esi + 0x20]
call fcn.00774550
add esp, 0x1c
pop ebp
ret