Function at 0x10149c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x3c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push 0x14
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], ecx
push eax
push edi
mov dword [ebp - 0x3c], 0
call ebx
test eax, eax
je 0x1014a03e
cmp dword [ebp - 0x3c], 0x14
jne 0x1014a03e
mov eax, dword [ebp - 0x18]
cmp eax, 0x400000
ja 0x1014a03e
test eax, eax
je 0x1014a03e
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x44]
cmp eax, 0x400000
ja 0x1014a03e
cmp dword [ebp - 0x40], 0
jne 0x1014a03e
push 0x1025c02a
push dword [ebp - 0x18]
sub eax, 0x14
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
call fcn.101c85a0
mov esi, eax
add esp, 8
test esi, esi
je 0x1014a03e
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
push esi
push edi
call ebx
test eax, eax
je 0x1014a035
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x44]
jne 0x1014a035
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.1013b950
lea eax, [ebp - 0x38]
push eax
call fcn.1013b950
mov eax, dword [0x1024e5d8]
xor ecx, ecx
add esp, 8
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x10149d87
lea ecx, [ebp - 0x34]
push ecx
push 0x102096a0
call eax
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0
je 0x10149fee
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10149fee
test ecx, ecx
je 0x10149fee
push 0
mov dword [ebp - 0x2c], 0x10
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 0xc]
push 0x10
mov ecx, dword [eax]
test ebx, ebx
jne 0x10149dca
push 0x1021892c
jmp 0x10149dcf
push 0x10218940
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x44]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea ecx, [ebp - 0x14]
mov edi, 0xc
lea edx, [ebp - 0x28]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10149e15
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10149e00
xor eax, eax
jmp 0x10149e3a
cmp al, byte [edx]
jne 0x10149e35
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10149e35
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10149e35
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10149e35
xor eax, eax
jmp 0x10149e3a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10149e43
lea edi, [eax + 1]
jmp 0x10149eb7
mov eax, dword [ebp - 0x30]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x30]
push 0x10
mov ecx, dword [eax]
test ebx, ebx
jne 0x10149e62
push 0x10218954
jmp 0x10149e67
push 0x10218968
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x44]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea ecx, [ebp - 0x14]
mov edi, 0xc
lea edx, [ebp - 0x28]
jmp 0x10149ea0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10149fee
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10149ea0
xor edi, edi
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0
mov ecx, dword [eax]
push 8
test ebx, ebx
jne 0x10149ecf
push 0x1021897c
jmp 0x10149ed4
push 0x10218990
push 0x100
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
push ebx
push esi
push ecx
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
add ecx, esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
push 0x1025c02a
test edi, edi
je 0x10149f88
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.101c85a0
mov edi, eax
add esp, 8
test edi, edi
je 0x10149fee
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov ecx, 0x1024e5d0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push esi
push eax
push edi
call fcn.101b18c0
push esi
test eax, eax
je 0x10149f69
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 8
jmp 0x10149ff7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x2c]
add esp, 4
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x2c]
mov byte [edi + eax + 1], 0
jmp 0x10149fcf
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
call fcn.101c85a0
mov edi, eax
add esp, 8
test edi, edi
je 0x10149fee
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + 1]
push eax
push edi
push ecx
push esi
push 0
push dword [0x1023fe00]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], edi
call fcn.1014ab00
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, 1
jmp 0x10149ff9
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1014a006
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1014a013
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1014a020
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8