Function at 0x40a2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x451de0
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x726468]
push ebx
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x40a303
cmp byte [edi + 1], 0
je 0x40a303
mov byte [ecx + 0x10], 0
mov ecx, dword [edi + 0x48]
call fcn.0041d610
mov eax, dword [0x726468]
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 0x40a34d
mov dword [edi + 0x3bec], 0
mov dword [edi + 0x3be8], 0
test eax, eax
je 0x40a338
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [0x726468]
add esp, 4
mov dword [edi + 0x3bf0], 0
cmp byte [edi], 0
je 0x40ac5d
cmp byte [edi + 0x59ed], 0
je 0x40a3b4
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40a3b4
lea ecx, [ebp - 0x10]
mov dword [eax + 0x59f0], 0
mov dword [ebp - 0x10], 0
call fcn.0041b8d0
mov edx, 0x4581ec
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00403e00
mov esi, eax
test esi, esi
je 0x40a3b4
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.004069e0
xor esi, esi
lea ecx, [edi + 0x3de8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de0], esi
jle 0x40a40e
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a403
mov ecx, eax
call fcn.00405fd0
mov eax, dword [0x726468]
test eax, eax
je 0x40a3f5
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 0x40a3d3
jmp 0x40a411
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x40a449
mov eax, dword [0x726468]
mov dword [edi + 0x3de4], 0
mov dword [edi + 0x3de0], 0
test eax, eax
je 0x40a43a
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 0x40a486
mov eax, dword [0x726468]
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3dec], 0
test eax, eax
je 0x40a476
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 0x40a4c3
mov eax, dword [0x726468]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x40a4b3
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 0x40a50a
mov eax, dword [0x726468]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x40a4fa
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 0x40a547
mov eax, dword [0x726468]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x40a537
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.00401890
mov ecx, dword [edi + 0x4740]
test ecx, ecx
je 0x40a5cb
mov eax, dword [0x726468]
mov dword [edi + 0x473c], 0
mov dword [edi + 0x4738], 0
test eax, eax
je 0x40a5bb
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 0x40a608
mov eax, dword [0x726468]
mov dword [edi + 0x4748], 0
mov dword [edi + 0x4744], 0
test eax, eax
je 0x40a5f8
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 0x40a645
mov eax, dword [0x726468]
mov dword [edi + 0x4754], 0
mov dword [edi + 0x4750], 0
test eax, eax
je 0x40a635
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 0x40a682
mov eax, dword [0x726468]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x40a672
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 0x40a6bf
mov eax, dword [0x726468]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x40a6af
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 0x40a77d
mov eax, dword [edi + 0x47a4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40a76d
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a710
mov ecx, eax
call fcn.004015d0
mov eax, dword [0x726468]
test eax, eax
je 0x40a708
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 0x40a738
mov ecx, eax
call fcn.004015d0
mov eax, dword [0x726468]
test eax, eax
je 0x40a730
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x41c7b0
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.004508ce
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x726468]
test eax, eax
je 0x40a764
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 0x40a6d0
mov ecx, dword [edi + 0x47a4]
test ecx, ecx
je 0x40a7ba
mov eax, dword [0x726468]
mov dword [edi + 0x47a0], 0
mov dword [edi + 0x479c], 0
test eax, eax
je 0x40a7aa
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a4], 0
lea ecx, [edi + 0x4a20]
call fcn.0041c800
mov ecx, dword [edi + 0x4a48]
test ecx, ecx
je 0x40a802
mov eax, dword [0x726468]
mov dword [edi + 0x4a44], 0
mov dword [edi + 0x4a40], 0
test eax, eax
je 0x40a7f2
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 0x40a83f
mov eax, dword [0x726468]
mov dword [edi + 0x4a50], 0
mov dword [edi + 0x4a4c], 0
test eax, eax
je 0x40a82f
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 0x40a88c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x49cc]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x40a876
mov eax, dword [0x726468]
test eax, eax
je 0x40a86d
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 0x40a850
mov ecx, dword [edi + 0x49cc]
test ecx, ecx
je 0x40a8c9
mov eax, dword [0x726468]
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0
test eax, eax
je 0x40a8b9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49cc], 0
lea ecx, [edi + 0x49e4]
call fcn.0041ca00
cmp dword [edi + 0x49d8], 0
mov dword [ebp - 0x10], 0
jle 0x40a942
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.00428740
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40a923
mov eax, dword [0x726468]
test eax, eax
je 0x40a91d
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 0x40a8f0
mov ecx, dword [edi + 0x49e0]
test ecx, ecx
je 0x40a97f
mov eax, dword [0x726468]
mov dword [edi + 0x49dc], 0
mov dword [edi + 0x49d8], 0
test eax, eax
je 0x40a96f
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 0x40a9bc
mov eax, dword [0x726468]
mov dword [edi + 0x4a14], 0
mov dword [edi + 0x4a10], 0
test eax, eax
je 0x40a9ac
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 0x40a9f9
mov eax, dword [0x726468]
mov dword [edi + 0x59b8], 0
mov dword [edi + 0x59b4], 0
test eax, eax
je 0x40a9e9
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 0x40aa36
mov eax, dword [0x726468]
mov dword [edi + 0x59c4], 0
mov dword [edi + 0x59c0], 0
test eax, eax
je 0x40aa26
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 0x40aa73
mov eax, dword [0x726468]
mov dword [edi + 0x4a84], 0
mov dword [edi + 0x4a80], 0
test eax, eax
je 0x40aa63
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 0x40aab0
mov eax, dword [0x726468]
mov dword [edi + 0x4a90], 0
mov dword [edi + 0x4a8c], 0
test eax, eax
je 0x40aaa0
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 0x40aaed
mov eax, dword [0x726468]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x40aadd
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 0x40ab2a
mov eax, dword [0x726468]
mov dword [edi + 0x5a10], 0
mov dword [edi + 0x5a0c], 0
test eax, eax
je 0x40ab1a
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 0x40ab67
mov eax, dword [0x726468]
mov dword [edi + 0x5a04], 0
mov dword [edi + 0x5a00], 0
test eax, eax
je 0x40ab57
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a08], 0
cmp dword [edi + 0x5a58], 0
je 0x40ab99
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 0x40ab8f
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 0x40abd6
mov eax, dword [0x726468]
mov dword [edi + 0x5a60], 0
mov dword [edi + 0x5a5c], 0
test eax, eax
je 0x40abc6
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 0x40ac13
mov eax, dword [0x726468]
mov dword [edi + 0x5a8c], 0
mov dword [edi + 0x5a88], 0
test eax, eax
je 0x40ac03
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 0x40ac50
mov eax, dword [0x726468]
mov dword [edi + 0x5a98], 0
mov dword [edi + 0x5a94], 0
test eax, eax
je 0x40ac40
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