Function at 0x10119b70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101955b1
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], edx
mov ebx, ecx
mov dword [ebp - 0xe8], ebx
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xec], eax
mov eax, ebx
jb 0x10119bca
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10119bf6
mov edi, 4
mov eax, edi
jmp 0x1011a12f
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, 4
push esi
cmove edi, ecx
mov dword [ebp - 0x100], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd4]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [eax + 4], ecx
test edi, edi
je 0x10119c34
mov eax, edi
jmp 0x1011a12f
test ecx, ecx
ja 0x10119df2
jb 0x10119c42
test esi, esi
jne 0x10119c4c
mov eax, 4
jmp 0x1011a12f
test ecx, ecx
ja 0x10119df2
jb 0x10119c5e
cmp esi, 0x100000
jae 0x10119c74
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xe4], esi
mov esi, 1
jmp 0x10119e82
test ecx, ecx
ja 0x10119df2
jb 0x10119c8a
cmp esi, 0xa00000
jae 0x10119d33
mov eax, esi
mov dword [ebp - 0xf0], 0x19000
mov edx, 0xe147ae15
mov dword [ebp - 0xe4], 0x1000
mul edx
mov ebx, 0x47ae147a
mov dword [ebp - 0xf8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xd8], edx
mov eax, ecx
mov ecx, 0xe147ae15
mul ecx
mov ecx, eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov dword [ebp - 0xe0], edx
mov edx, dword [ebp - 0xd4]
adc edx, 0
mov dword [ebp - 0xdc], eax
add ebx, ecx
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xf8], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xdc]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xe0]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x10
jmp 0x10119e7b
test ecx, ecx
ja 0x10119df2
jb 0x10119d49
cmp esi, 0x6400000
jae 0x10119df2
mov eax, esi
mov dword [ebp - 0xf0], 0xfa000
mov edx, 0x1a9fbe77
mov dword [ebp - 0xe4], 0x1000
mul edx
mov ebx, 0x624dd2f
mov dword [ebp - 0xf8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xdc], edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul ecx
mov ecx, eax
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0xe0]
adc edx, 0
mov dword [ebp - 0xd8], eax
add ebx, ecx
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xf8], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xd8]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xd4]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x13
jmp 0x10119e7b
mov eax, esi
mov dword [ebp - 0xf0], 0x9c4000
mov edx, 0x3886594b
mov dword [ebp - 0xe4], 0x1000
mul edx
mov ebx, 0x346dc5d6
mov dword [ebp - 0xf8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xdc], edx
mov eax, ecx
mov ecx, 0x3886594b
mul ecx
mov ecx, eax
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, edi
mov dword [ebp - 0xd8], edx
mov esi, eax
mov edx, dword [ebp - 0xe0]
adc edx, 0
add ebx, ecx
mov ecx, dword [ebp - 0xdc]
adc ecx, 0
mov dword [ebp - 0xf8], ebx
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xd8]
adc eax, eax
add esi, edx
adc ecx, eax
shrd esi, ecx, 0x15
mov ebx, dword [ebp - 0xe8]
inc esi
mov edi, dword [ebp - 0xec]
mov ecx, esi
imul ecx, dword [ebp - 0xe4]
mov eax, ecx
cdq
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], edx
lea eax, [ecx + 1]
push eax
call fcn.1015cb13
mov ecx, dword [ebp - 0xfc]
add esp, 4
mov dword [ecx], eax
mov ecx, edi
mov ecx, dword [ecx]
inc ecx
push ecx
push 0
push eax
call fcn.10160390
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xb8
push 0
push eax
call fcn.10160390
mov edi, dword [ebp - 0xe4]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x10119ee4
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0xd0]
push ebx
call fcn.100f65a0
mov dword [ebp - 4], 0
mov dword [ebp - 0xec], 0
test esi, esi
jle 0x1011a0e2
mov ecx, dword [ebp - 0xd0]
mov eax, edi
cdq
mov dword [ebp - 0xd8], edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xe8], edx
mov ecx, dword [ecx + 4]
mov eax, edx
cdq
mov edi, 4
mov dword [ebp - 0xe0], edx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + ecx - 0xc4]
add ecx, edx
xor edx, edx
push 0
cmp dword [ecx + 0x38], edx
cmovne edi, edx
and eax, 0xfffffffe
or edi, eax
push edi
call fcn.100e1460
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov ebx, dword [ebp + eax - 0x98]
test ebx, ebx
je 0x10119f9c
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, ebx
call edi
push ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.10103f70
mov byte [ebp - 0xf4], al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xd0]
mov ebx, dword [eax + 4]
test byte [ebp + ebx - 0xc4], 6
jne 0x1011a042
mov ebx, dword [ebp + ebx - 0x98]
lea eax, [ebp - 0x118]
push 1
push 0
push dword [ebp - 0xe0]
mov edi, dword [ebx]
push dword [ebp - 0xdc]
push eax
mov edi, dword [edi + 0x28]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x110]
add ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x10c]
adc eax, dword [ebp - 0x114]
and ecx, eax
cmp ecx, 0xffffffff
jne 0x1011a042
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.100e1460
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov ebx, dword [ebp + eax - 0x98]
test ebx, ebx
je 0x1011a06b
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xd4]
mov byte [ebp - 4], 0
mov eax, dword [eax]
push dword [ebp - 0x14]
add eax, ebx
push eax
call fcn.1011b780
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0xc4]
shr eax, 2
test al, 1
jne 0x1011a14b
mov eax, dword [ebp - 0xec]
mov edx, dword [ebp - 0xe8]
inc eax
add edx, dword [ebp - 0xf0]
add ebx, dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xd4], ebx
cmp eax, esi
jl 0x10119f30
mov esi, dword [ebp - 0x100]
lea ecx, [ebp - 0xc0]
call fcn.100f6f70
test eax, eax
jne 0x1011a122
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.100e1460
lea ecx, [ebp - 0xd0]
call fcn.100f5660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x1011a0e8