Function at 0x1029f13
Capabilities:
Write file on windows

Disassembly:
push 0x26c
mov eax, 0x106e39c
call fcn.0105b971
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1029f66
test byte [eax + 0x1c], 4
je 0x1029f66
cmp byte [eax + 0x19], 5
jb 0x1029f66
mov esi, 0x1002028
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1029f6b
mov esi, 0x1002028
or dword [ebp - 0x240], 0xffffffff
or dword [ebp - 0x244], 0xffffffff
or dword [ebp - 0x248], 0xffffffff
and dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x238]
call fcn.01028929
and dword [ebp - 4], 0
cmp dword [0x1077eb4], 0
jne 0x1029ffb
call fcn.010283a2
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x1029ff1
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1029fd7
test byte [eax + 0x1c], 4
je 0x1029fd7
cmp byte [eax + 0x19], 2
jb 0x1029fd7
push dword [ebp - 0x24c]
push esi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025760
mov eax, dword [ebp - 0x24c]
jmp 0x102a3db
mov dword [0x1077eb4], 1
push edi
call fcn.0105e24a
mov ebx, eax
test ebx, ebx
je 0x102a040
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a3ca
test byte [eax + 0x1c], 4
je 0x102a3ca
cmp byte [eax + 0x19], 2
jb 0x102a3ca
push ebx
push edi
push esi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
jmp 0x102a3ca
lea eax, [ebp - 0x240]
push eax
push 0
mov ecx, edi
call fcn.010294b0
mov ebx, eax
test ebx, ebx
je 0x102a08e
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a2a2
test byte [eax + 0x1c], 4
je 0x102a2a2
cmp byte [eax + 0x19], 2
jb 0x102a2a2
push ebx
push esi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x102a2a2
lea eax, [ebp - 0x244]
push eax
push 1
mov ecx, edi
call fcn.010294b0
mov ebx, eax
test ebx, ebx
je 0x102a0ce
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a2a2
test byte [eax + 0x1c], 4
je 0x102a2a2
cmp byte [eax + 0x19], 2
jb 0x102a2a2
push ebx
push esi
push 0x1f
jmp 0x102a07e
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x250]
push 0x1002234
mov dword [ecx], eax
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x254]
push edi
push 0x10019a0
mov dword [ecx], eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.01009a76
mov edi, eax
xor eax, eax
add esp, 0x14
cmp edi, eax
jge 0x102a15f
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a138
test byte [eax + 0x1c], 4
je 0x102a138
cmp byte [eax + 0x19], 2
jb 0x102a138
push edi
push esi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x102a154
movzx eax, di
mov dword [ebp - 0x23c], eax
jmp 0x102a38b
mov dword [ebp - 0x23c], edi
jmp 0x102a38b
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call fcn.0105e220
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
jne 0x102a1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a38b
test byte [eax + 0x1c], 4
je 0x102a38b
cmp byte [eax + 0x19], 2
jb 0x102a38b
push dword [ebp - 0x23c]
push esi
push 0x21
jmp 0x102a380
lea edi, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.01028ef8
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x102a1e7
lea eax, [ebp - 0x234]
push 0
lea ecx, [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x224]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x102a340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a340
test byte [eax + 0x1c], 4
je 0x102a340
cmp byte [eax + 0x19], 2
jb 0x102a340
push dword [ebp - 0x23c]
push esi
push 0x23
jmp 0x102a335
test ebx, ebx
je 0x102a340
cmp dword [ebp - 0x244], 0xffffffff
je 0x102a2f5
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a2f5
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a2f5
test byte [eax + 0x1c], 4
je 0x102a2f5
cmp byte [eax + 0x19], 2
jb 0x102a2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push esi
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 0x240], 0xffffffff
je 0x102a340
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a340
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a340
test byte [eax + 0x1c], 4
je 0x102a340
cmp byte [eax + 0x19], 2
jb 0x102a340
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push esi
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 0x248], 0xffffffff
je 0x102a38b
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a38b
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a38b
test byte [eax + 0x1c], 4
je 0x102a38b
cmp byte [eax + 0x19], 2
jb 0x102a38b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push esi
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x102a3ca
mov dword [ebp - 0x278], eax
xor eax, eax
lea ecx, [ebp - 0x278]
mov word [ebp - 0x274], ax
call fcn.01009ad5
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x80007d4d
push 2
push 2
push 1
call fcn.0105d809
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025760
mov eax, ebx
call fcn.0105b9dc
ret 0xc