Function at 0x107469f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x109a3f2
call fcn.01077478
sub esp, 0x10
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, 0x1007f1c
je 0x10746f1
test byte [eax + 0x1c], 1
je 0x10746f1
cmp byte [eax + 0x19], 5
jb 0x10746f1
push dword [ebp + 0x14]
mov ecx, dword [ebx]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push esi
push edi
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103ae1c
mov eax, dword [0x10a6184]
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp edx, 3
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
je 0x1074747
cmp edx, 4
je 0x1074747
cmp eax, 0x10a6184
mov ecx, 0x8007139f
mov dword [ebp + 8], ecx
je 0x1074960
test byte [eax + 0x1c], 0x10
je 0x107492c
cmp byte [eax + 0x19], 2
jb 0x107492c
push ecx
push edx
push esi
push ecx
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106ae69
jmp 0x1074927
mov edx, dword [ebx]
cmp dword [edx - 0xc], ecx
je 0x107475c
cmp dword [ebp + 0xc], ecx
jl 0x107475c
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x1074799
cmp eax, 0x10a6184
mov ecx, 0x80070057
mov dword [ebp + 8], ecx
je 0x1074960
test byte [eax + 0x1c], 0x10
je 0x107492c
cmp byte [eax + 0x19], 2
jb 0x107492c
push ecx
push esi
push ecx
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
jmp 0x1074927
cmp dword [ebp + 0x14], 0
jne 0x1074808
push 0x1006868
push ecx
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
jne 0x10747fa
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007006e
mov dword [ebp + 8], ecx
je 0x1074960
test byte [eax + 0x1c], 0x10
je 0x107492c
cmp byte [eax + 0x19], 2
jb 0x107492c
mov edx, dword [esi + 0xc]
push ecx
push edx
push esi
push ecx
push edi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
jmp 0x1074927
mov dword [ebp - 0x18], 1
mov dword [esi + 0x20], 3
push 0x10a8b2c
lea ecx, [ebp - 0x10]
call fcn.01020db5
push dword [ebx]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
jne 0x1074832
push 0x1007f40
jmp 0x1074837
push 0x1007f2c
push eax
call fcn.0100d972
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx - 0xc]
add esp, 0x10
inc ax
shl eax, 1
cmp ax, 0x1000
mov dword [ebp - 0x14], eax
ja 0x10748ce
push dword [ebp + 0x14]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1074887
push dword [ebp + 0x14]
push eax
movzx eax, word [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call ebx
add esp, 0x10
cmp eax, 1
je 0x10748c2
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007001d
mov dword [ebp + 8], ecx
je 0x1074900
test byte [eax + 0x1c], 0x10
je 0x1074900
cmp byte [eax + 0x19], 2
jb 0x1074900
movzx edx, word [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push edx
push esi
push ecx
push edi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102d5aa
jmp 0x1074900
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
jmp 0x1074900
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x8007000d
mov dword [ebp + 8], ecx
je 0x1074900
test byte [eax + 0x1c], 0x10
je 0x1074900
cmp byte [eax + 0x19], 2
jb 0x1074900
push ecx
push edx
push esi
push ecx
push edi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01009cd1
cmp dword [ebp - 0x18], 1
jne 0x1074927
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
je 0x1074927
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1074960
test byte [eax + 0x1c], 1
je 0x1074960
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 8], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1074960
push dword [ebp + 8]
push edi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10