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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
push edi
cmp ecx, edi
je 0x10018643
push edi
push 3
push edi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
jne 0x10018623
lea eax, [edi + 0xe]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
je 0x10018639
cmp ebx, 0x200000
jle 0x1001869a
mov esi, 0x16
jmp 0x1001881a
push eax
call sym.dcapi.dll_dc_disk_open
add esp, 8
mov dword [ebp - 0x214], eax
cmp eax, edi
jne 0x1001866c
mov eax, 0xd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.10017dd0
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x1001882b
mov ebx, dword [ebp - 0x20c]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x20c], edi
test edi, edi
jne 0x100186b8
lea esi, [eax + 9]
jmp 0x1001881a
cmp dword [ebp - 0x218], 0
je 0x100186e5
mov eax, dword [ebp - 0x210]
push 0
lea edx, [ebp - 0x224]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001870e
lea esi, [eax + 0xf]
jmp 0x10018810
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x214]
push ecx
push edx
push ebx
push edi
push eax
call sym.dcapi.dll_dc_disk_read
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10018810
mov ecx, ebx
mov eax, edi
cmp ebx, 0x5c8
jbe 0x10018749
lea ebx, [ebx]
cmp dword [eax], 0x1434a669
jne 0x10018731
cmp dword [eax + 4], 0x7269da46
je 0x10018745
dec ecx
inc eax
cmp ecx, 0x5c8
ja 0x10018720
mov esi, 0x17
jmp 0x10018810
test eax, eax
jne 0x10018753
mov esi, 0x17
jmp 0x10018810
cmp dword [ebp - 0x218], 0
mov ecx, 0x80
lea esi, [eax + 0x116]
lea edi, [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov ecx, 0x172
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x80
lea esi, [ebp - 0x428]
lea edi, [eax + 0x116]
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 0x1434a669
mov dword [eax + 4], 0x7269da46
mov dword [eax + 8], 0x76
je 0x100187dd
mov esi, dword [ebp - 0x210]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 0x20c]
push 0
lea ecx, [ebp - 0x224]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10018808
lea esi, [eax + 0xf]
jmp 0x1001880a
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x214]
push ecx
push ebx
push edx
push eax
call sym.dcapi.dll_dc_disk_write
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001880a
xor esi, esi
mov edi, dword [ebp - 0x20c]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1001882b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x214]
test edi, edi
je 0x10018848
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d340
mov esp, ebp
pop ebp
ret