Function at 0x1049b72
Capabilities:
Get file size

Disassembly:
push 0x48
mov eax, 0x10609e8
call fcn.0104f320
mov dword [ebp - 0x34], ecx
xor edi, edi
push 0xffffffffffffffff
add ecx, 4
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call fcn.01049a57
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x104a015
cmp esi, 0xffffffff
je 0x104a015
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
xor ecx, ecx
or edx, ebx
or ecx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov ebx, 0x4a000
cmp dword [ebp - 0x2c], edi
jne 0x1049beb
cmp eax, ebx
ja 0x1049beb
push 0x1015058
push 0x4000000
call fcn.0104a881
pop ecx
pop ecx
jmp 0x1049c54
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1049c5f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jle 0x1049c10
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1049c1e
mov dword [ebp - 0x14], 0x80004005
push ebx
push 0x1015010
push 0x1014fe4
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jge 0x1049c54
mov ecx, dword [ebp - 0x34]
push 0xffffffffffffffff
push 0
add ecx, 4
call fcn.01049a57
mov dword [ebp - 0x14], 0x8007000d
mov eax, dword [ebp - 0x14]
call fcn.0104f3d4
ret 4
push edi
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.01048eb1
cmp eax, edi
jne 0x1049caf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jle 0x1049c8a
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1049c98
mov dword [ebp - 0x14], 0x80004005
push 0x1014fa0
push 0x1014f78
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
jmp 0x1049c34
movzx eax, word [ebp - 0x30]
push eax
push 0x1014f28
push 0x4000000
call fcn.0104a881
add esp, 0xc
mov dword [ebp - 0x1c], edi
movzx eax, word [ebp - 0x30]
cmp dword [ebp - 0x1c], eax
jae 0x1049c34
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
push 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1049cfa
mov ecx, ebx
call fcn.01030ba7
jmp 0x1049cfc
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x1049d36
push 0x1014f10
push 0x1014ee8
push 0x8007000e
call fcn.0104a504
add esp, 0xc
push edi
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x18]
call fcn.01048f62
or dword [ebp - 4], 0xffffffff
jmp 0x1049c3e
push edi
lea eax, [ebp - 0x24]
push eax
push 8
lea esi, [ebx + 8]
push esi
push dword [ebp + 8]
call fcn.01048eb1
cmp eax, edi
jne 0x1049da1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jle 0x1049d63
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1049d71
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x1c]
push 0x1014e80
push 0x1014e54
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
push edi
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x18]
call fcn.01048f62
jmp 0x1049c34
push 0
lea eax, [ebp - 0x24]
push eax
push 8
lea edi, [ebx + 0x10]
push edi
push dword [ebp + 8]
call fcn.01048eb1
test eax, eax
jne 0x1049df9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1049dcf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x1049ddd
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x1c]
push 0x1014df0
push 0x1014dc8
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
push 0
jmp 0x1049d8a
mov eax, dword [edi]
mov ecx, dword [esi]
mov edx, dword [edi + 4]
add ecx, eax
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 4]
adc eax, edx
mov dword [ebp - 0x40], edx
cmp eax, dword [esi + 4]
ja 0x1049e41
jb 0x1049e18
cmp ecx, dword [esi]
jae 0x1049e41
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [esi + 4]
push dword [esi]
push 0x1014d68
push 0x1014d40
push 0x8007000d
call fcn.0104a504
add esp, 0x1c
push 0
jmp 0x1049d1b
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], ecx
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
adc eax, dword [ebp - 0x40]
cmp dword [ebp - 0x48], eax
ja 0x1049e76
jb 0x1049e5e
cmp dword [ebp - 0x4c], ecx
jae 0x1049e76
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0x1014ce0
push 0x1014cb8
jmp 0x1049e2d
push 0
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebx + 0x18]
push 4
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], eax
call fcn.01048eb1
test eax, eax
jne 0x1049ec7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1049ea7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x1049eb5
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x1c]
push 0x1014c50
push 0x1014c24
jmp 0x1049dea
push 0
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.01048eb1
test eax, eax
jne 0x1049f15
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1049ef5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x1049f03
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x1c]
push 0x1014bb0
push 0x1014b84
jmp 0x1049dea
movzx eax, word [ebp - 0x28]
inc eax
push eax
lea ecx, [ebp - 0x20]
call fcn.01033f0f
movzx eax, al
test eax, eax
jne 0x1049f49
push 0x1014b64
push 0x1014b3c
push 0x8007000e
call fcn.0104a504
add esp, 0xc
push dword [ebp - 0x20]
jmp 0x1049d1b
push 0
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x28]
add eax, eax
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.01048eb1
test eax, eax
jne 0x1049fa9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1049f7b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x1049f89
mov dword [ebp - 0x14], 0x80004005
push dword [ebp - 0x1c]
push 0x1014ad8
push 0x1014ab0
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
push dword [ebp - 0x20]
jmp 0x1049d8a
movzx ecx, word [ebp - 0x28]
mov eax, dword [ebp - 0x20]
xor edx, edx
mov word [eax + ecx*2], dx
push eax
mov ecx, ebx
call fcn.01031649
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ebx, dword [ebx]
movzx eax, word [ebp - 0x28]
push ebx
push eax
push dword [edi + 4]
push dword [edi]
push dword [esi + 4]
push dword [esi]
push 0x1014a38
push 0x4000000
call fcn.0104a881
mov ecx, dword [ebp - 0x34]
add esp, 0x24
lea eax, [ebp - 0x18]
push eax
add ecx, 4
call fcn.010451b6
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x18]
call fcn.01048f62
inc dword [ebp - 0x1c]
xor edi, edi
jmp 0x1049cc9
push 0x10149fc
push 0x10149d4
push 0x80070057
call fcn.0104a504
add esp, 0xc
jmp 0x1049d2d