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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1e34
call fcn.100bb1c0
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x1e30], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [0x10125d80], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [0x10128404], eax
mov eax, dword [ebp + 0x10]
push 0xffe
mov dword [0x10128400], eax
lea eax, [esp + 0xe3e]
push 0
push eax
mov dword [0x10128408], ebx
call fcn.100bc780
push 0x200
lea eax, [esp + 0x28]
push 0
push eax
call fcn.100bc780
push 0xc1c
lea eax, [esp + 0x234]
push 0
push eax
call fcn.100bc780
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
add esp, 0x24
mov dword [esp + 0x218], 0xc1c
mov dword [esp + 0x21c], 1
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x1002096e
mov ebx, dword [ebx]
test ebx, ebx
je 0x1002096e
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
call fcn.100c9e8e
mov ebx, dword [0x10128408]
add esp, 4
mov dword [esp + 0x220], eax
xor eax, eax
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x100209b9
mov ebx, dword [ebx]
test ebx, ebx
je 0x100209b9
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
call fcn.100c9e8e
mov ebx, dword [0x10128408]
add esp, 4
mov dword [esp + 0xe24], eax
xor eax, eax
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x10020a04
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020a04
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
lea eax, [esp + 0x228]
push 0x100
push eax
call fcn.100c9f97
mov ebx, dword [0x10128408]
xor eax, eax
add esp, 0xc
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x10020a55
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020a55
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
lea eax, [esp + 0x428]
push 0x100
push eax
call fcn.100c9f97
mov ebx, dword [0x10128408]
xor eax, eax
add esp, 0xc
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x10020aa6
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020aa6
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
lea eax, [esp + 0x628]
push 0x400
push eax
call fcn.100c9f97
mov ebx, dword [0x10128408]
xor eax, eax
add esp, 0xc
mov word [esp + 0xe38], ax
test ebx, ebx
je 0x10020af7
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020af7
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe3c]
push eax
call esi
mov eax, dword [0x10128408]
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
call edi
lea eax, [esp + 0xe38]
push eax
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.100c9f97
add esp, 0xc
xorps xmm3, xmm3
xor eax, eax
xorps xmm2, xmm2
mov word [esp + 0x216], ax
nop dword [eax]
nop word [eax + eax]
movd xmm1, dword [esp + eax + 0x218]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [esp + eax + 0x21c]
punpcklbw xmm1, xmm0
add eax, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp eax, 0xc18
jb 0x10020b30
paddd xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
push 0
paddd xmm2, xmm0
movd ecx, xmm2
push 0x80
push 4
cmp ecx, 2
push 0
push 0
lea eax, [ecx - 2]
cmovbe eax, ecx
mov dword [esp + 0xe44], eax
lea eax, [esp + 0x2c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x10020c26
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xc1c
lea eax, [esp + 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], 0xc1c
je 0x10020c1f
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1e3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ba074
mov esp, ebp
pop ebp
ret