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

Disassembly:
push 0x24c
mov eax, 0x106e364
call fcn.0105b971
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x23c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x240], eax
xor eax, eax
lea edi, [ebp - 0x244]
mov dword [ebp - 0x248], ebx
mov esi, ecx
stosd dword es:[edi], eax
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x102950e
test byte [eax + 0x1c], 4
je 0x102950e
cmp byte [eax + 0x19], 5
jb 0x102950e
push 0x1002028
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, 0x1001d44
cmp dword [ebp + 8], ebx
je 0x102951d
mov eax, 0x1001d28
push eax
push esi
push 0x10019a0
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.01009a76
mov esi, eax
add esp, 0x14
test esi, esi
jge 0x1029583
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1029566
test byte [eax + 0x1c], 4
je 0x1029566
cmp byte [eax + 0x19], 2
jb 0x1029566
push esi
push 0x1002028
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x102957c
movzx ebx, si
jmp 0x102976e
mov ebx, esi
jmp 0x102976e
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call fcn.0105e220
mov esi, eax
mov dword [ebp - 0x23c], esi
cmp esi, 0xffffffff
jne 0x10295ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102976e
test byte [eax + 0x1c], 4
je 0x102976e
cmp byte [eax + 0x19], 2
jb 0x102976e
push ebx
push 0x1002028
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x102976e
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1029634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102976e
test byte [eax + 0x1c], 4
je 0x102976e
cmp byte [eax + 0x19], 2
jb 0x102976e
push ebx
push 0x1002028
push 0x56
jmp 0x10295df
xor eax, eax
cmp dword [ebp - 0x248], eax
jne 0x1029813
cmp dword [ebp - 0x244], eax
jne 0x1029813
push eax
lea eax, [ebp - 0x254]
push eax
push 2
lea eax, [ebp - 0x250]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x250], 0xfeff
call esi
test eax, eax
jne 0x10296ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102976e
test byte [eax + 0x1c], 4
je 0x102976e
cmp byte [eax + 0x19], 2
jb 0x102976e
push ebx
push 0x1002028
push 0x57
jmp 0x10295df
lea ecx, [ebp - 0x238]
call fcn.01028929
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
mov eax, 0x10019d4
je 0x10296cf
mov eax, 0x1002164
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.01028dde
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x10296f1
lea eax, [ebp - 0x234]
push 0
lea ecx, [ebp - 0x254]
push ecx
mov ecx, dword [ebp - 0x224]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x23c]
call esi
test eax, eax
jne 0x1029751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1029740
test byte [eax + 0x1c], 4
je 0x1029740
cmp byte [eax + 0x19], 2
jb 0x1029740
push ebx
push 0x1002028
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025760
jmp 0x102976e
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025760
mov esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
mov dword [eax], esi
test ebx, ebx
je 0x10298ea
mov eax, dword [ebp - 0x240]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1029793
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
or dword [eax], 0xffffffff
mov esi, dword [ebp + 8]
test esi, esi
jne 0x102985d
and dword [0x107805c], esi
jmp 0x1029864
push 2
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1029766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102976e
test byte [eax + 0x1c], 4
je 0x102976e
cmp byte [eax + 0x19], 2
jb 0x102976e
push ebx
push 0x1002028
push 0x5a
jmp 0x10295df
and dword [0x1078060], 0
xor eax, eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], ax
call fcn.01009ad5
push eax
push dword [0x1078064]
neg esi
push 0xc0007d3c
sbb esi, esi
push 2
add esi, 3
push esi
push 1
call fcn.0105d809
add esp, 0x18
cmp dword [ebp - 0x23c], 0xffffffff
je 0x10298ea
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10298ea
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10298ea
test byte [eax + 0x1c], 4
je 0x10298ea
cmp byte [eax + 0x19], 2
jb 0x10298ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x1002028
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, ebx
call fcn.0105b9dc
ret 8