Function at 0x102a36e
Capabilities:
Write file on windows

Disassembly:
push 0x26c
mov eax, 0x106e5c4
call fcn.0105bd31
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 0x102a3c1
test byte [eax + 0x1c], 4
je 0x102a3c1
cmp byte [eax + 0x19], 5
jb 0x102a3c1
mov esi, 0x1002028
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x102a3c6
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.01028d84
and dword [ebp - 4], 0
cmp dword [0x1077eb4], 0
jne 0x102a456
call fcn.010287fd
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x102a44c
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x102a432
test byte [eax + 0x1c], 4
je 0x102a432
cmp byte [eax + 0x19], 2
jb 0x102a432
push dword [ebp - 0x24c]
push esi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025bbc
mov eax, dword [ebp - 0x24c]
jmp 0x102a836
mov dword [0x1077eb4], 1
push edi
call fcn.0105e60a
mov ebx, eax
test ebx, ebx
je 0x102a49b
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a825
test byte [eax + 0x1c], 4
je 0x102a825
cmp byte [eax + 0x19], 2
jb 0x102a825
push ebx
push edi
push esi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x102a825
lea eax, [ebp - 0x240]
push eax
push 0
mov ecx, edi
call fcn.0102990b
mov ebx, eax
test ebx, ebx
je 0x102a4e9
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a6fd
test byte [eax + 0x1c], 4
je 0x102a6fd
cmp byte [eax + 0x19], 2
jb 0x102a6fd
push ebx
push esi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x102a6fd
lea eax, [ebp - 0x244]
push eax
push 1
mov ecx, edi
call fcn.0102990b
mov ebx, eax
test ebx, ebx
je 0x102a529
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a6fd
test byte [eax + 0x1c], 4
je 0x102a6fd
cmp byte [eax + 0x19], 2
jb 0x102a6fd
push ebx
push esi
push 0x1f
jmp 0x102a4d9
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.01009acc
mov edi, eax
xor eax, eax
add esp, 0x14
cmp edi, eax
jge 0x102a5ba
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a593
test byte [eax + 0x1c], 4
je 0x102a593
cmp byte [eax + 0x19], 2
jb 0x102a593
push edi
push esi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x102a5af
movzx eax, di
mov dword [ebp - 0x23c], eax
jmp 0x102a7e6
mov dword [ebp - 0x23c], edi
jmp 0x102a7e6
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call fcn.0105e5e0
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
jne 0x102a61e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a7e6
test byte [eax + 0x1c], 4
je 0x102a7e6
cmp byte [eax + 0x19], 2
jb 0x102a7e6
push dword [ebp - 0x23c]
push esi
push 0x21
jmp 0x102a7db
lea edi, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.01029353
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x102a642
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 0x102a79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a79b
test byte [eax + 0x1c], 4
je 0x102a79b
cmp byte [eax + 0x19], 2
jb 0x102a79b
push dword [ebp - 0x23c]
push esi
push 0x23
jmp 0x102a790
test ebx, ebx
je 0x102a79b
cmp dword [ebp - 0x244], 0xffffffff
je 0x102a750
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a750
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a750
test byte [eax + 0x1c], 4
je 0x102a750
cmp byte [eax + 0x19], 2
jb 0x102a750
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.0102ca9d
cmp dword [ebp - 0x240], 0xffffffff
je 0x102a79b
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a79b
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a79b
test byte [eax + 0x1c], 4
je 0x102a79b
cmp byte [eax + 0x19], 2
jb 0x102a79b
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.0102ca9d
cmp dword [ebp - 0x248], 0xffffffff
je 0x102a7e6
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x102a7e6
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102a7e6
test byte [eax + 0x1c], 4
je 0x102a7e6
cmp byte [eax + 0x19], 2
jb 0x102a7e6
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.0102ca9d
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x102a825
mov dword [ebp - 0x278], eax
xor eax, eax
lea ecx, [ebp - 0x278]
mov word [ebp - 0x274], ax
call fcn.01009b2b
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x80007d4d
push 2
push 2
push 1
call fcn.0105dbc9
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.01025bbc
mov eax, ebx
call fcn.0105bd9c
ret 0xc