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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
push eax
push dword [ecx + 0x188]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x58]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x70], edx
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x68], ecx
push 0x100082dc
push eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], edx
call fcn.100a6b40
mov esi, dword [ebp - 0x58]
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x101148a6
push 0x10048840
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x10114c75
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101148ff
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x101148dd
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x101148e4
mov edi, 0x80004005
push esi
push 0x10049510
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x10114c72
push 0
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10114c38
cmp eax, 0xc
jb 0x10114c38
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 0
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x10114961
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1011494c
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10114953
mov edi, 0x80004005
push esi
push 0x1004957c
push 1
push edi
jmp 0x10114c42
push 4
pop eax
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x74], eax
call fcn.101b859e
mov dword [ebp - 0x58], eax
cmp eax, 1
je 0x10114989
cmp eax, 3
jne 0x10114a9e
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x10114a9e
cmp dword [ebp + 8], 0
je 0x10114a9e
push dword [ebp - 0x10]
lea edx, [ebp - 0x5c]
push dword [ebp - 0x14]
call fcn.101150d1
mov edi, eax
test edi, edi
jns 0x101149cc
push 0x100495ac
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x10114c4f
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x54]
call fcn.10115504
mov edi, eax
test edi, edi
jns 0x101149e4
push 0x1004875c
jmp 0x101149b7
push dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
xor edx, edx
push dword [ebp - 0x60]
inc edx
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
call fcn.10113f2d
push dword [ebp - 0x60]
mov edi, eax
push dword [ebp - 0x54]
test edi, edi
jns 0x10114a23
push 0x100495d0
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x18
jmp 0x10114c4f
mov eax, dword [ebp - 0x68]
push dword [eax + 0x188]
lea eax, [ebp - 0x50]
push 0x10049608
push eax
call fcn.100a6b40
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x10114a4d
push 0x10048d40
jmp 0x101149b7
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
jne 0x10114a9b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10114a87
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10114a8e
mov edi, 0x80004005
push dword [ebp - 0x50]
push 0x10049618
jmp 0x10114959
mov eax, dword [ebp - 0x58]
cmp eax, 1
je 0x10114ab6
cmp eax, 2
je 0x10114ab6
cmp eax, 3
je 0x10114ab6
cmp eax, 5
jne 0x10114c4f
push 0x34
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10114adc
mov dword [ebp - 0x24], 1
test ebx, ebx
je 0x10114ae9
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x24], 1
jbe 0x10114bc1
push 0x10049638
mov edx, esi
lea ecx, [ebp - 8]
call fcn.100a9500
mov edi, eax
test edi, edi
jns 0x10114b12
push 0x1004964c
jmp 0x101149b7
push 1
push dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
jne 0x10114b4e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10114b39
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10114b40
mov edi, 0x80004005
push dword [ebp - 8]
push esi
push 0x10048ce8
jmp 0x10114a0e
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileW]
test eax, eax
jne 0x10114b8a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10114b75
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10114b7c
mov edi, 0x80004005
push esi
push dword [ebp - 8]
push 0x10049670
jmp 0x10114a0e
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x10114bc1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x10114ba9
movzx eax, ax
or eax, 0x80070000
push dword [ebp - 8]
push 0x10049694
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 5
push 0xc0000000
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10114c17
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10114bf8
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10114bff
mov edi, 0x80004005
push esi
push 0x10049510
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x10114c5f
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
mov edx, ebx
call fcn.101144b2
mov edi, eax
test edi, edi
jns 0x10114c4f
push dword [ebp - 0x50]
push esi
push 0x100496b4
jmp 0x10114a0e
push esi
push 0x10049530
push 0
push 0
push 0x4000000
call fcn.100ab973
add esp, 0x14
test ebx, ebx
je 0x10114c5f
cmp ebx, 0xffffffff
je 0x10114c5f
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x10114c72
cmp eax, 0xffffffff
je 0x10114c72
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ebx, dword [ebp - 0x50]
test esi, esi
je 0x10114c83
lea eax, [esi - 4]
push eax
call fcn.100b84f9
pop ecx
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x10114c9a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101e07c0]
call esi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10114cab
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test ebx, ebx
je 0x10114cb9
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
lea ecx, [ebp - 8]
call fcn.100b61be
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0x10