Function at 0x100fc61b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov byte [ebp - 0x15], cl
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x14], ecx
mov edi, ecx
mov dword [ebp - 0x24], ecx
push 1
mov esi, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x40]
push 0x101dd068
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
call fcn.100ad791
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xc], ebx
je 0x100fca8e
push edi
mov ecx, eax
call fcn.100f58ce
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax]
call fcn.10129ce2
mov esi, eax
test esi, esi
jns 0x100fc6ad
push 0x1003ab14
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100fca2a
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push ebx
push dword [ebp - 0x24]
push 0x1003ab3c
push eax
call fcn.100a6b40
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x100fc6e8
push 0x1003ab50
push 1
push esi
push 0x4000000
call fcn.100ab973
mov ebx, dword [ebp - 0x20]
add esp, 0x10
jmp 0x100fca2a
push ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 0x1003ab70
push eax
call fcn.100a6b40
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x100fc70a
push 0x1003ab8c
jmp 0x100fc6d0
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
push dword [ebp - 0x28]
call fcn.10102846
mov esi, eax
test esi, esi
jns 0x100fc742
push 0x1003ad1c
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x100fca2a
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
cmp dword [eax + 0xc], ecx
jbe 0x100fc8be
mov esi, ecx
push ecx
mov ecx, eax
call fcn.100f58ce
mov eax, dword [eax]
push dword [eax + 0x30]
lea eax, [ebp - 0x14]
push dword [ebp - 0x24]
push 0x1003ab3c
push eax
call fcn.100a6b40
add esp, 0x10
test eax, eax
js 0x100fc87d
and dword [ebp - 0x1c], 0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0xffffffff
jne 0x100fc7e8
cmp dword [ebp - 0x1c], 3
jae 0x100fc7c7
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 3
jb 0x100fc785
push dword [ebp - 0x14]
push 0x1003adb4
push 1
push 0x80004005
push 0x2000000
call fcn.100ab973
add esp, 0x14
jmp 0x100fc880
push 0
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x100fc939
lea ecx, [esi + 2]
push ecx
call fcn.100b84fe
mov ebx, eax
mov dword [ebp - 0xc], ebx
pop ecx
test ebx, ebx
je 0x100fc92c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x100fc91f
push 0x100205ec
push ebx
mov byte [esi + ebx], 0
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x100fc912
push 0
lea ecx, [ebp - 8]
sub esi, eax
push ecx
add esi, ebx
push esi
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x100fc87a
push dword [ebp - 0x14]
push 0x1003ad38
push 1
push 0x80004005
push 0x2000000
call fcn.100ab973
add esp, 0x14
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x100fc88b
push esi
call fcn.100b84f9
pop ecx
xor esi, esi
mov dword [ebp - 0xc], esi
test ebx, ebx
je 0x100fc8a5
cmp ebx, 0xffffffff
je 0x100fc8a5
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [eax + 0xc]
jb 0x100fc758
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], esi
push 0
lea eax, [ebp - 8]
push eax
push 0xb
push 0x1003acb8
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x100fc95d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100fc8f1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100fc8f8
mov esi, 0x80004005
push 0x1003add4
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100fca1c
push dword [ebp - 0x14]
push 0x1003ad4c
jmp 0x100fc866
push dword [ebp - 0x14]
push 0x1003ad70
jmp 0x100fc866
push dword [ebp - 0x14]
push 0x1003ad84
jmp 0x100fc866
push dword [ebp - 0x14]
push 0x1003ad98
push 1
push 0x80004005
push 0x2000000
call fcn.100ab973
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x100fc880
cmp byte [ebp - 0x15], 0
je 0x100fc99e
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
test eax, eax
jne 0x100fc99e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x100fc982
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x100fc989
mov eax, 0x80004005
push 0x1003adf4
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
test edi, edi
je 0x100fc9b0
cmp edi, 0xffffffff
je 0x100fc9b0
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x28]
push 0x110
push 0
push 0
push 0
je 0x100fc9c8
push ebx
push esi
jmp 0x100fc9ca
push esi
push ebx
call dword [sym.imp.api_ms_win_core_kernel32_private_l1_1_1.dll_PrivCopyFileExW]
push 0
xor edx, edx
mov ecx, ebx
call fcn.100ebf39
test eax, eax
jns 0x100fc9f5
push ebx
push 0x100384c8
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x14
push 0
xor edx, edx
mov ecx, esi
call fcn.100ebf39
test eax, eax
jns 0x100fca1a
push esi
push 0x100384c8
push 1
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x14
xor esi, esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100fca2a
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100fca3b
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test ebx, ebx
je 0x100fca49
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100fca5a
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test edi, edi
je 0x100fca6a
cmp edi, 0xffffffff
je 0x100fca6a
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100fca7d
cmp eax, 0xffffffff
je 0x100fca7d
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100fca8e
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
lea ecx, [ebp - 0x40]
call fcn.100aa570
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 4