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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101f3540]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100a5c2d
xor al, al
jmp 0x100a5e2f
mov esi, esp
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100a5c65
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
xor al, al
jmp 0x100a5e2f
mov eax, dword [ebp - 0xc]
push eax
call fcn.100f05e0
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.100f3210
test eax, eax
jne 0x100a5cbd
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov edx, dword [ebp - 0x10]
push edx
call fcn.100f0630
add esp, 4
xor al, al
jmp 0x100a5e2f
mov dword [ebp - 0x4c], 0x3e8
lea eax, [ebp - 0x4c]
push eax
push 0x95e97e5e
push 0x4671ae97
lea ecx, [ebp - 0x28]
call fcn.1009d930
nop
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100a5fb0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100a5800
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100a5d0e
mov byte [ebp - 0x5d], 1
jmp 0x100a5d12
mov byte [ebp - 0x5d], 0
mov al, byte [ebp - 0x5d]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x100a5d35
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.100a5fb0
add esp, 8
jmp 0x100a5dff
lea ecx, [ebp - 0x28]
call fcn.1009ded0
cmp dword [eax], 0x3e8
jge 0x100a5dfa
mov ecx, dword [ebp + 0xc]
call fcn.100a2340
add eax, 0x2c
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
call fcn.100f4610
mov dword [ebp - 0x68], esp
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
call fcn.100f3090
add dword [ebp - 0x68], 0x20
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.100a69a0
add esp, 8
mov dword [ebp - 0x3c], eax
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
nop
mov esi, esp
push 0
push 0
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
je 0x100a5df8
mov dword [ebp - 0x44], 0x3e8
mov esi, esp
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.100a2340
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
nop
jmp 0x100a5dff
xor edx, edx
jne 0x100a5dff
int3
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov edx, dword [ebp - 0x10]
push edx
call fcn.100f0630
add esp, 4
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x28]
call fcn.100a0d80
mov al, byte [ebp - 0x4d]
push edx
mov ecx, ebp
push eax
lea edx, [0x100a5e58]
push dword [ebp - 0x58]
call fcn.100f30d0
pop eax
pop edx
lea esp, [ebp - 0x70]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f3240
mov esp, ebp
pop ebp
ret