Function at 0x10119d40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10195771
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 0x10119d9a
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 0x10119dc6
mov edi, 4
mov eax, edi
jmp 0x1011a2ff
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 0x10119e04
mov eax, edi
jmp 0x1011a2ff
test ecx, ecx
ja 0x10119fc2
jb 0x10119e12
test esi, esi
jne 0x10119e1c
mov eax, 4
jmp 0x1011a2ff
test ecx, ecx
ja 0x10119fc2
jb 0x10119e2e
cmp esi, 0x100000
jae 0x10119e44
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xe4], esi
mov esi, 1
jmp 0x1011a052
test ecx, ecx
ja 0x10119fc2
jb 0x10119e5a
cmp esi, 0xa00000
jae 0x10119f03
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 0x1011a04b
test ecx, ecx
ja 0x10119fc2
jb 0x10119f19
cmp esi, 0x6400000
jae 0x10119fc2
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 0x1011a04b
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.1015cbe3
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.10160450
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xb8
push 0
push eax
call fcn.10160450
mov edi, dword [ebp - 0xe4]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x1011a0b4
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0xd0]
push ebx
call fcn.100f6e10
mov dword [ebp - 4], 0
mov dword [ebp - 0xec], 0
test esi, esi
jle 0x1011a2b2
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.100e1ea0
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 0x1011a16c
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.101047d0
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 0x1011a212
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 0x1011a212
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.100e1ea0
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 0x1011a23b
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.1011b950
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0xc4]
shr eax, 2
test al, 1
jne 0x1011a31b
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 0x1011a100
mov esi, dword [ebp - 0x100]
lea ecx, [ebp - 0xc0]
call fcn.100f77e0
test eax, eax
jne 0x1011a2f2
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.100e1ea0
lea ecx, [ebp - 0xd0]
call fcn.100f5ed0
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.1015c875
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x1011a2b8