Function at 0x409ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x446c20
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4a5318]
push ebx
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x409f03
cmp byte [edi + 1], 0
je 0x409f03
mov byte [ecx + 0x10], 0
mov ecx, dword [edi + 0x48]
call fcn.0041dd90
mov eax, dword [0x4a5318]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3bf0]
test ecx, ecx
je 0x409f4d
mov dword [edi + 0x3bec], 0
mov dword [edi + 0x3be8], 0
test eax, eax
je 0x409f38
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [0x4a5318]
add esp, 4
mov dword [edi + 0x3bf0], 0
cmp byte [edi], 0
je 0x40a85d
cmp byte [edi + 0x59ed], 0
je 0x409fb4
mov esi, dword [edi + 0x20]
test esi, esi
je 0x409fb4
lea ecx, [ebp - 0x10]
mov dword [eax + 0x59f0], 0
mov dword [ebp - 0x10], 0
call fcn.0041c010
mov edx, 0x44d084
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00403d70
mov esi, eax
test esi, esi
je 0x409fb4
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x14]
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 edx, 6
mov ecx, edi
call fcn.004065d0
xor esi, esi
lea ecx, [edi + 0x3de8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de0], esi
jle 0x40a00e
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a003
mov ecx, eax
call fcn.00405bd0
mov eax, dword [0x4a5318]
test eax, eax
je 0x409ff5
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3de8]
inc esi
cmp esi, dword [edi + 0x3de0]
jl 0x409fd3
jmp 0x40a011
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x40a049
mov eax, dword [0x4a5318]
mov dword [edi + 0x3de4], 0
mov dword [edi + 0x3de0], 0
test eax, eax
je 0x40a03a
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3df4]
test ecx, ecx
je 0x40a086
mov eax, dword [0x4a5318]
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3dec], 0
test eax, eax
je 0x40a076
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3df4], 0
mov ecx, dword [edi + 0x3e00]
test ecx, ecx
je 0x40a0c3
mov eax, dword [0x4a5318]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x40a0b3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e00], 0
mov dword [edi + 0x3e28], 0
mov ecx, dword [edi + 0x3e0c]
test ecx, ecx
je 0x40a10a
mov eax, dword [0x4a5318]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x40a0fa
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e0c], 0
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
je 0x40a147
mov eax, dword [0x4a5318]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x40a137
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e18], 0
lea ecx, [edi + 0x4540]
mov dword [edi + 0x47a8], 0
mov dword [edi + 0x3e30], 0
mov dword [edi + 0x3e2c], 0
mov dword [edi + 0x3ea4], 0
mov dword [edi + 0x3e90], 0
mov dword [edi + 0x3e34], 0
call fcn.004017f0
mov ecx, dword [edi + 0x4740]
test ecx, ecx
je 0x40a1cb
mov eax, dword [0x4a5318]
mov dword [edi + 0x473c], 0
mov dword [edi + 0x4738], 0
test eax, eax
je 0x40a1bb
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4740], 0
mov ecx, dword [edi + 0x474c]
test ecx, ecx
je 0x40a208
mov eax, dword [0x4a5318]
mov dword [edi + 0x4748], 0
mov dword [edi + 0x4744], 0
test eax, eax
je 0x40a1f8
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x474c], 0
mov ecx, dword [edi + 0x4758]
test ecx, ecx
je 0x40a245
mov eax, dword [0x4a5318]
mov dword [edi + 0x4754], 0
mov dword [edi + 0x4750], 0
test eax, eax
je 0x40a235
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4758], 0
mov ecx, dword [edi + 0x4788]
test ecx, ecx
je 0x40a282
mov eax, dword [0x4a5318]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x40a272
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4788], 0
mov ecx, dword [edi + 0x4794]
test ecx, ecx
je 0x40a2bf
mov eax, dword [0x4a5318]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x40a2af
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4794], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x479c], ecx
jle 0x40a37d
mov eax, dword [edi + 0x47a4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40a36d
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a310
mov ecx, eax
call fcn.004015b0
mov eax, dword [0x4a5318]
test eax, eax
je 0x40a308
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a338
mov ecx, eax
call fcn.004015b0
mov eax, dword [0x4a5318]
test eax, eax
je 0x40a330
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x41cf10
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.004455b4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4a5318]
test eax, eax
je 0x40a364
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x479c]
jl 0x40a2d0
mov ecx, dword [edi + 0x47a4]
test ecx, ecx
je 0x40a3ba
mov eax, dword [0x4a5318]
mov dword [edi + 0x47a0], 0
mov dword [edi + 0x479c], 0
test eax, eax
je 0x40a3aa
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a4], 0
lea ecx, [edi + 0x4a20]
call fcn.0041cf80
mov ecx, dword [edi + 0x4a48]
test ecx, ecx
je 0x40a402
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a44], 0
mov dword [edi + 0x4a40], 0
test eax, eax
je 0x40a3f2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a48], 0
mov ecx, dword [edi + 0x4a54]
test ecx, ecx
je 0x40a43f
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a50], 0
mov dword [edi + 0x4a4c], 0
test eax, eax
je 0x40a42f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a54], 0
xor esi, esi
cmp dword [edi + 0x49c4], esi
jle 0x40a48c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x49cc]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x40a476
mov eax, dword [0x4a5318]
test eax, eax
je 0x40a46d
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc esi
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x49c4]
jl 0x40a450
mov ecx, dword [edi + 0x49cc]
test ecx, ecx
je 0x40a4c9
mov eax, dword [0x4a5318]
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0
test eax, eax
je 0x40a4b9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49cc], 0
lea ecx, [edi + 0x49e4]
call fcn.0041d180
cmp dword [edi + 0x49d8], 0
mov dword [ebp - 0x10], 0
jle 0x40a542
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x49e0]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.004282d0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40a523
mov eax, dword [0x4a5318]
test eax, eax
je 0x40a51d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add ecx, 0x68
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x49d8]
jl 0x40a4f0
mov ecx, dword [edi + 0x49e0]
test ecx, ecx
je 0x40a57f
mov eax, dword [0x4a5318]
mov dword [edi + 0x49dc], 0
mov dword [edi + 0x49d8], 0
test eax, eax
je 0x40a56f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49e0], 0
mov ecx, dword [edi + 0x4a18]
test ecx, ecx
je 0x40a5bc
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a14], 0
mov dword [edi + 0x4a10], 0
test eax, eax
je 0x40a5ac
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a18], 0
mov ecx, dword [edi + 0x59bc]
test ecx, ecx
je 0x40a5f9
mov eax, dword [0x4a5318]
mov dword [edi + 0x59b8], 0
mov dword [edi + 0x59b4], 0
test eax, eax
je 0x40a5e9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59bc], 0
mov ecx, dword [edi + 0x59c8]
test ecx, ecx
je 0x40a636
mov eax, dword [0x4a5318]
mov dword [edi + 0x59c4], 0
mov dword [edi + 0x59c0], 0
test eax, eax
je 0x40a626
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59c8], 0
mov ecx, dword [edi + 0x4a88]
test ecx, ecx
je 0x40a673
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a84], 0
mov dword [edi + 0x4a80], 0
test eax, eax
je 0x40a663
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a88], 0
mov ecx, dword [edi + 0x4a94]
test ecx, ecx
je 0x40a6b0
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a90], 0
mov dword [edi + 0x4a8c], 0
test eax, eax
je 0x40a6a0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a94], 0
mov ecx, dword [edi + 0x4aa0]
test ecx, ecx
je 0x40a6ed
mov eax, dword [0x4a5318]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x40a6dd
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa0], 0
mov ecx, dword [edi + 0x5a14]
test ecx, ecx
je 0x40a72a
mov eax, dword [0x4a5318]
mov dword [edi + 0x5a10], 0
mov dword [edi + 0x5a0c], 0
test eax, eax
je 0x40a71a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a14], 0
mov ecx, dword [edi + 0x5a08]
test ecx, ecx
je 0x40a767
mov eax, dword [0x4a5318]
mov dword [edi + 0x5a04], 0
mov dword [edi + 0x5a00], 0
test eax, eax
je 0x40a757
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a08], 0
cmp dword [edi + 0x5a58], 0
je 0x40a799
mov esi, dword [edi + 0x5a58]
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 0x40a78f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a58], 0
mov ecx, dword [edi + 0x5a64]
test ecx, ecx
je 0x40a7d6
mov eax, dword [0x4a5318]
mov dword [edi + 0x5a60], 0
mov dword [edi + 0x5a5c], 0
test eax, eax
je 0x40a7c6
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a64], 0
mov ecx, dword [edi + 0x5a90]
test ecx, ecx
je 0x40a813
mov eax, dword [0x4a5318]
mov dword [edi + 0x5a8c], 0
mov dword [edi + 0x5a88], 0
test eax, eax
je 0x40a803
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a90], 0
mov ecx, dword [edi + 0x5a9c]
test ecx, ecx
je 0x40a850
mov eax, dword [0x4a5318]
mov dword [edi + 0x5a98], 0
mov dword [edi + 0x5a94], 0
test eax, eax
je 0x40a840
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5aa0], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret