Function at 0x100a6aa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x98]
lea ecx, [edi + 0x98]
test edx, edx
je 0x100a6be8
cmp byte [edi + 1], 0
lea ecx, [edi + 0x98]
je 0x100a6be8
mov byte [edx + 0x10], 0
lea ecx, [edi + 0x98]
mov ebp, dword [edi + 0x98]
test ebp, ebp
je 0x100a6be8
mov ecx, ebp
call fcn.100b9250
mov ecx, ebp
call fcn.100b9370
xor esi, esi
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x34], esi
jle 0x100a6b3e
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100a6b36
mov ecx, eax
call fcn.100ba230
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6b2a
dec dword [eax + 0x370]
push dword [esp + 0x18]
call ebx
add esp, 4
lea ecx, [ebp + 0x3c]
inc esi
cmp esi, dword [ebp + 0x34]
jl 0x100a6b07
jmp 0x100a6b42
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x100a6b75
mov eax, dword [0x1023d48c]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x34], 0
test eax, eax
je 0x100a6b65
dec dword [eax + 0x370]
push ecx
call ebx
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax], 0
mov byte [ebp + 0x11], 0
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x100a6b95
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6b8f
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x100a6bb1
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6bab
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x100a6bcd
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6bc7
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6bdc
dec dword [eax + 0x370]
push ebp
call ebx
add esp, 4
lea ecx, [edi + 0x98]
cmp byte [edi], 0
mov dword [ecx], 0
je 0x100a73b7
cmp byte [edi + 0x2f1d], 0
je 0x100a6c65
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100a6c65
mov ebp, dword [0x1023d48c]
lea ecx, [esp + 0x14]
mov dword [0x1023d48c], edi
mov dword [edi + 0x2f20], 0
mov dword [esp + 0x14], 0
call fcn.100b37f0
mov edx, 0x10224894
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.100a1ba0
mov esi, eax
test esi, esi
je 0x100a6c5f
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov dword [0x1023d48c], ebp
mov edx, 6
mov ecx, edi
call fcn.100a4660
xor esi, esi
cmp dword [edi + 0x1b64], esi
jle 0x100a6cb2
nop dword [eax + eax]
mov eax, dword [edi + 0x1b6c]
mov ebp, dword [eax + esi*4]
test ebp, ebp
je 0x100a6ca9
mov ecx, ebp
call fcn.100a3f20
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6ca3
dec dword [eax + 0x370]
push ebp
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x1b64]
jl 0x100a6c80
mov ecx, dword [edi + 0x1b6c]
test ecx, ecx
je 0x100a6cef
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1b68], 0
mov dword [edi + 0x1b64], 0
test eax, eax
je 0x100a6cdf
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b6c], 0
mov ecx, dword [edi + 0x1b78]
test ecx, ecx
je 0x100a6d2c
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b70], 0
test eax, eax
je 0x100a6d1c
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b78], 0
mov ecx, dword [edi + 0x1b84]
test ecx, ecx
je 0x100a6d69
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1b7c], 0
test eax, eax
je 0x100a6d59
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b84], 0
mov dword [edi + 0x1bac], 0
mov ecx, dword [edi + 0x1b90]
test ecx, ecx
je 0x100a6db0
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1b88], 0
test eax, eax
je 0x100a6da0
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b90], 0
mov ecx, dword [edi + 0x1b9c]
test ecx, ecx
je 0x100a6ded
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1b94], 0
test eax, eax
je 0x100a6ddd
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b9c], 0
mov dword [edi + 0x1d44], 0
mov dword [edi + 0x1bb4], 0
mov dword [edi + 0x1bb0], 0
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c10], 0
mov dword [edi + 0x1bb8], 0
mov ecx, dword [edi + 0x1ce0]
test ecx, ecx
je 0x100a6e66
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1cdc], 0
mov dword [edi + 0x1cd8], 0
test eax, eax
je 0x100a6e56
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ce0], 0
mov ecx, dword [edi + 0x1cec]
test ecx, ecx
je 0x100a6ea3
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x100a6e93
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x100a6ee0
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x100a6ed0
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d28]
test ecx, ecx
je 0x100a6f1d
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1d24], 0
mov dword [edi + 0x1d20], 0
test eax, eax
je 0x100a6f0d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d28], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x100a6f5a
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x100a6f4a
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d34], 0
xor ebp, ebp
cmp dword [edi + 0x1d38], ebp
jle 0x100a6ffb
nop dword [eax + eax]
mov eax, dword [edi + 0x1d40]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x100a6fee
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100a6fa7
mov ecx, eax
call fcn.100a0190
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6f9e
dec dword [eax + 0x370]
push dword [esp + 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100a6fd1
mov ecx, eax
call fcn.100a0190
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6fc8
dec dword [eax + 0x370]
push dword [esp + 0x18]
call ebx
add esp, 4
lea ecx, [esi + 0x60]
call fcn.100a02c0
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a6fe8
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
inc ebp
cmp ebp, dword [edi + 0x1d38]
jl 0x100a6f70
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x100a7038
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x100a7028
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d40], 0
lea ecx, [edi + 0x1f68]
call fcn.100b3fc0
mov ecx, dword [edi + 0x1f90]
test ecx, ecx
je 0x100a7080
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1f8c], 0
mov dword [edi + 0x1f88], 0
test eax, eax
je 0x100a7070
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f90], 0
mov ecx, dword [edi + 0x1f9c]
test ecx, ecx
je 0x100a70bd
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1f98], 0
mov dword [edi + 0x1f94], 0
test eax, eax
je 0x100a70ad
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f9c], 0
lea ecx, [edi + 0x1f20]
call fcn.100b40a0
xor ebp, ebp
cmp dword [edi + 0x1f40], ebp
jle 0x100a7120
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x1f48]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.100b8a50
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100a710c
mov eax, dword [0x1023d48c]
test eax, eax
je 0x100a7106
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [esp + 0x14]
inc ebp
add ecx, 0x68
mov dword [esp + 0x14], ecx
cmp ebp, dword [edi + 0x1f40]
jl 0x100a70e0
mov ecx, dword [edi + 0x1f48]
test ecx, ecx
je 0x100a715d
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1f44], 0
mov dword [edi + 0x1f40], 0
test eax, eax
je 0x100a714d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f48], 0
mov ecx, dword [edi + 0x1f60]
test ecx, ecx
je 0x100a719a
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1f5c], 0
mov dword [edi + 0x1f58], 0
test eax, eax
je 0x100a718a
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f60], 0
mov ecx, dword [edi + 0x2efc]
test ecx, ecx
je 0x100a71d7
mov eax, dword [0x1023d48c]
mov dword [edi + 0x2ef8], 0
mov dword [edi + 0x2ef4], 0
test eax, eax
je 0x100a71c7
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2efc], 0
mov ecx, dword [edi + 0x2f08]
test ecx, ecx
je 0x100a7214
mov eax, dword [0x1023d48c]
mov dword [edi + 0x2f04], 0
mov dword [edi + 0x2f00], 0
test eax, eax
je 0x100a7204
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f08], 0
mov ecx, dword [edi + 0x1fbc]
test ecx, ecx
je 0x100a7251
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1fb8], 0
mov dword [edi + 0x1fb4], 0
test eax, eax
je 0x100a7241
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fbc], 0
mov ecx, dword [edi + 0x1fc8]
test ecx, ecx
je 0x100a728e
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1fc4], 0
mov dword [edi + 0x1fc0], 0
test eax, eax
je 0x100a727e
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fc8], 0
mov ecx, dword [edi + 0x1fd4]
test ecx, ecx
je 0x100a72cb
mov eax, dword [0x1023d48c]
mov dword [edi + 0x1fd0], 0
mov dword [edi + 0x1fcc], 0
test eax, eax
je 0x100a72bb
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fd4], 0
mov ecx, dword [edi + 0x2f44]
test ecx, ecx
je 0x100a7308
mov eax, dword [0x1023d48c]
mov dword [edi + 0x2f40], 0
mov dword [edi + 0x2f3c], 0
test eax, eax
je 0x100a72f8
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f44], 0
mov ecx, dword [edi + 0x2f38]
test ecx, ecx
je 0x100a7345
mov eax, dword [0x1023d48c]
mov dword [edi + 0x2f34], 0
mov dword [edi + 0x2f30], 0
test eax, eax
je 0x100a7335
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f38], 0
cmp dword [edi + 0x2f6c], 0
je 0x100a7377
mov esi, dword [edi + 0x2f6c]
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 0x100a736d
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2f6c], 0
mov ecx, dword [edi + 0x2f78]
test ecx, ecx
je 0x100a73b4
mov eax, dword [0x1023d48c]
mov dword [edi + 0x2f74], 0
mov dword [edi + 0x2f70], 0
test eax, eax
je 0x100a73a4
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f78], 0
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret