Function at 0x10190b0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1f6c
call fcn.01014200
push ebx
push esi
push edi
push 0x1f40
xor ebx, ebx
lea eax, [ebp - 0x1f6c]
push ebx
push eax
mov dword [ebp - 0xc], 0xffffffff
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
push ecx
call dword [sym.imp.msvcrt.dll_iswascii]
add esp, 0x10
test eax, eax
mov eax, edi
jne 0x10190f8
mov eax, 0x100b79c
mov esi, dword [sym.imp.msvcrt.dll_wprintf]
push eax
push 0x100b768
call esi
push 0x100b760
call esi
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
push eax
call dword [sym.imp.msvcrt.dll_iswascii]
add esp, 0x10
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x1019129
mov eax, 0x100b79c
push eax
push 0x100b72c
call esi
push 0x100b720
call esi
add esp, 0xc
push 0x100b6e8
call fcn.0101a0a0
push ebx
push 0x68000000
push 3
push ebx
push 3
push 0x80000000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x1019177
push 0x100b6bc
call fcn.0101a030
xor edi, edi
jmp 0x1019522
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x10191a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10191a7
push 0x100b68c
call fcn.0101a030
xor edi, edi
jmp 0x101950b
mov ecx, dword [ebp + 8]
push ebx
push 0xe0000000
push 1
xor eax, eax
push ebx
or eax, esi
push ebx
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x40000000
or ecx, edx
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x10191ee
push 0x100b6bc
call fcn.0101a030
xor edi, edi
jmp 0x101950b
push ebx
add esi, 0xfff
lea ecx, [ebp + 8]
push ecx
shr esi, 0xc
shl esi, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1019227
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019227
push 0x100b658
call fcn.0101a030
xor edi, edi
jmp 0x101950b
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1019243
push 0x100b628
call fcn.0101a030
xor edi, edi
jmp 0x101950b
mov dword [ebp + 0xc], ebx
lea esi, [ebp - 0x1da8]
jmp 0x1019255
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
mov dword [esi - 4], edx
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x28], eax
cmp eax, ebx
je 0x1019471
push 4
push 0x1000
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x2c], eax
cmp eax, ebx
je 0x1019482
lea edi, [esi - 0x1bc]
jmp 0x10192b0
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0
add eax, ebx
push 0
mov dword [edi + 0x10], eax
mov dword [edi], 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
test eax, eax
je 0x1019490
add ebx, 0x10000
add edi, 0x1c
cmp ebx, 0x100000
jl 0x10192b0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push ecx
lea ebx, [esi - 0x1c4]
push ebx
call fcn.01018e40
mov edi, eax
test edi, edi
je 0x1019509
mov edi, ebx
call fcn.01019040
mov edi, eax
test edi, edi
je 0x1019509
mov edx, dword [esi + 8]
add dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
adc dword [ebp - 4], 0
inc eax
add esi, 0x1f4
cmp eax, 0x10
mov dword [ebp + 0xc], eax
jl 0x1019250
xor eax, eax
lea ebx, [ebp - 0x1f6c]
mov esi, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 1
call fcn.01018d10
mov edi, eax
test edi, edi
je 0x1019509
nop
lea edx, [ebp + 0xc]
mov eax, ebx
call fcn.01018d90
mov edi, eax
test edi, edi
je 0x1019509
cmp dword [ebp + 0xc], 0
jne 0x10194ba
mov edx, dword [ebx + 0x1c4]
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x1dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x101949e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebx + 0x1d0]
jne 0x10194ac
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push ecx
push esi
push edx
push eax
push ebx
call fcn.01018e40
mov edi, eax
test edi, edi
je 0x1019509
mov ecx, dword [ebx + 0x1cc]
add dword [ebp - 8], ecx
mov edi, ebx
adc dword [ebp - 4], 0
call fcn.01019040
mov edi, eax
test edi, edi
je 0x1019509
mov edx, dword [ebx + 0x1d0]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push 0
adc ecx, 0
push 0x64
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call fcn.01013f20
mov ecx, dword [ebp - 0x10]
push ecx
push esi
push edx
push eax
call fcn.01014020
push eax
call fcn.0101a110
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
and edx, 0x8000000f
mov dword [ebp + 0xc], 0
jns 0x101944b
dec edx
or edx, 0xfffffff0
inc edx
imul eax, eax, 0x1f4
lea ebx, [ebp + eax - 0x1f6c]
mov esi, ebx
mov dword [ebp - 0x24], edx
call fcn.01018d10
mov edi, eax
test edi, edi
jne 0x1019370
jmp 0x1019509
push 0x100b5f8
call fcn.0101a030
xor edi, edi
jmp 0x101950b
push 0x100b5c8
call fcn.0101a030
xor edi, edi
jmp 0x101950b
push 0x100b5f8
call fcn.0101a030
xor edi, edi
jmp 0x1019509
push 0x100b550
call fcn.0101a030
xor edi, edi
jmp 0x1019509
push 0x100b4c0
call fcn.0101a030
xor edi, edi
jmp 0x1019509
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0xc]
push 0
lea eax, [ebp + 8]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10194eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10194eb
push 0x100b658
call fcn.0101a030
xor edi, edi
jmp 0x1019509
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1019504
push 0x100b628
call fcn.0101a030
xor edi, edi
jmp 0x1019509
call fcn.0101a170
xor ebx, ebx
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x1019522
push eax
call esi
lea esi, [ebp - 0x1d7c]
mov dword [ebp + 0xc], 0x10
nop
mov eax, dword [esi]
cmp eax, ebx
je 0x1019543
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
add esi, 0x1f4
sub dword [ebp + 0xc], 1
jne 0x1019530
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8