Function at 0x100a16f0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x102a2000]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x100a1749
cmp byte [ebx + 1], 0
je 0x100a1749
mov byte [eax], 0
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x100a1749
mov ecx, esi
call fcn.100b9af0
mov eax, dword [0x102a2d10]
test eax, eax
je 0x100a1739
dec dword [eax + 0x374]
push dword [0x102a2d18]
push esi
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x98], 0
cmp byte [ebx], 0
je 0x100a1eec
cmp byte [ebx + 0x2db8], 0
je 0x100a17cb
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x100a17cb
mov ebp, dword [0x102a2d10]
mov dword [0x102a2d10], ebx
mov dword [ebx + 0x2dbc], 0
mov dword [esp], 0
mov eax, esp
push eax
call fcn.100b3290
add esp, 4
mov esi, eax
push 0x1016bec5
push edi
call fcn.1009cbf0
add esp, 8
test eax, eax
je 0x100a17c5
mov edi, eax
push eax
push dword [esp + 4]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [0x102a2d10], ebp
mov eax, dword [ebx + 0x19c8]
test eax, eax
jle 0x100a1820
xor edi, edi
jmp 0x100a17fb
push dword [0x102a2d18]
push esi
call dword [0x102a1fc0]
add esp, 8
mov eax, dword [ebx + 0x19c8]
inc edi
cmp edi, eax
jge 0x100a1820
mov ecx, dword [ebx + 0x19d0]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x100a17f6
mov ecx, esi
call fcn.1009fb90
mov eax, dword [0x102a2d10]
test eax, eax
je 0x100a17e0
dec dword [eax + 0x374]
jmp 0x100a17e0
mov eax, dword [ebx + 0x19d0]
test eax, eax
je 0x100a1868
mov dword [ebx + 0x19cc], 0
mov dword [ebx + 0x19c8], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a184e
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x19d0], 0
mov eax, dword [ebx + 0x19dc]
test eax, eax
je 0x100a18b0
mov dword [ebx + 0x19d8], 0
mov dword [ebx + 0x19d4], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1896
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x19dc], 0
mov eax, dword [ebx + 0x19e8]
test eax, eax
je 0x100a18f8
mov dword [ebx + 0x19e4], 0
mov dword [ebx + 0x19e0], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a18de
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x19e8], 0
mov dword [ebx + 0x1a08], 0
mov eax, dword [ebx + 0x19f4]
test eax, eax
je 0x100a194a
mov dword [ebx + 0x19f0], 0
mov dword [ebx + 0x19ec], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1930
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x19f4], 0
mov eax, dword [ebx + 0x1a00]
test eax, eax
je 0x100a1992
mov dword [ebx + 0x19fc], 0
mov dword [ebx + 0x19f8], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1978
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1a00], 0
mov dword [ebx + 0x1b38], 0
mov dword [ebx + 0x1a10], 0
mov dword [ebx + 0x1a0c], 0
mov dword [ebx + 0x1a7c], 0
mov dword [ebx + 0x1a68], 0
mov dword [ebx + 0x1a14], 0
mov eax, dword [ebx + 0x1b04]
test eax, eax
je 0x100a1a16
mov dword [ebx + 0x1b00], 0
mov dword [ebx + 0x1afc], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a19fc
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1b04], 0
mov eax, dword [ebx + 0x1b10]
test eax, eax
je 0x100a1a5e
mov dword [ebx + 0x1b0c], 0
mov dword [ebx + 0x1b08], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1a44
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1b10], 0
mov eax, dword [ebx + 0x1b1c]
test eax, eax
je 0x100a1aa6
mov dword [ebx + 0x1b18], 0
mov dword [ebx + 0x1b14], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1a8c
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1b1c], 0
mov eax, dword [ebx + 0x1b28]
test eax, eax
je 0x100a1aee
mov dword [ebx + 0x1b24], 0
mov dword [ebx + 0x1b20], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1ad4
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1b28], 0
mov eax, dword [ebx + 0x1b34]
test eax, eax
je 0x100a1b36
mov dword [ebx + 0x1b30], 0
mov dword [ebx + 0x1b2c], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1b1c
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1b34], 0
mov eax, dword [ebx + 0x1ca8]
test eax, eax
je 0x100a1b7e
mov dword [ebx + 0x1ca4], 0
mov dword [ebx + 0x1ca0], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1b64
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1ca8], 0
mov eax, dword [ebx + 0x1cb4]
test eax, eax
je 0x100a1bc6
mov dword [ebx + 0x1cb0], 0
mov dword [ebx + 0x1cac], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1bac
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1cb4], 0
lea ecx, [ebx + 0x1cbc]
call fcn.100b5220
lea ecx, [ebx + 0x1d34]
call fcn.100b5220
lea ecx, [ebx + 0x1e44]
call fcn.100ac600
mov eax, dword [ebx + 0x1e68]
test eax, eax
je 0x100a1c2f
mov dword [ebx + 0x1e64], 0
mov dword [ebx + 0x1e60], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1c15
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1e68], 0
mov eax, dword [ebx + 0x1e74]
test eax, eax
je 0x100a1c77
mov dword [ebx + 0x1e70], 0
mov dword [ebx + 0x1e6c], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1c5d
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1e74], 0
mov eax, dword [ebx + 0x2d98]
test eax, eax
je 0x100a1cbf
mov dword [ebx + 0x2d94], 0
mov dword [ebx + 0x2d90], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1ca5
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x2d98], 0
mov eax, dword [ebx + 0x2da4]
test eax, eax
je 0x100a1d07
mov dword [ebx + 0x2da0], 0
mov dword [ebx + 0x2d9c], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1ced
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x2da4], 0
mov eax, dword [ebx + 0x1e94]
test eax, eax
je 0x100a1d4f
mov dword [ebx + 0x1e90], 0
mov dword [ebx + 0x1e8c], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1d35
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1e94], 0
mov eax, dword [ebx + 0x1ea0]
test eax, eax
je 0x100a1d97
mov dword [ebx + 0x1e9c], 0
mov dword [ebx + 0x1e98], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1d7d
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1ea0], 0
mov eax, dword [ebx + 0x1eac]
test eax, eax
je 0x100a1ddf
mov dword [ebx + 0x1ea8], 0
mov dword [ebx + 0x1ea4], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1dc5
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x1eac], 0
mov eax, dword [ebx + 0x2de0]
test eax, eax
je 0x100a1e27
mov dword [ebx + 0x2ddc], 0
mov dword [ebx + 0x2dd8], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1e0d
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x2de0], 0
mov eax, dword [ebx + 0x2dd4]
test eax, eax
je 0x100a1e6f
mov dword [ebx + 0x2dd0], 0
mov dword [ebx + 0x2dcc], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1e55
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x2dd4], 0
mov esi, dword [ebx + 0x2dec]
test esi, esi
je 0x100a1ea1
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x100a1e97
push dword [ebx + 0x2dec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x2dec], 0
mov eax, dword [ebx + 0x2df8]
test eax, eax
je 0x100a1ee9
mov dword [ebx + 0x2df4], 0
mov dword [ebx + 0x2df0], 0
mov ecx, dword [0x102a2d10]
test ecx, ecx
je 0x100a1ecf
dec dword [ecx + 0x374]
push dword [0x102a2d18]
push eax
call dword [0x102a1fc0]
add esp, 8
mov dword [ebx + 0x2df8], 0
mov byte [ebx], 0
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100ea0d3
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret