Function at 0x409a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
je 0x409a59
cmp byte [edi + 1], 0
je 0x409a59
mov byte [eax + 0x10], 0
mov ecx, dword [edi + 0x98]
call fcn.00417b20
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x40a41a
cmp byte [edi + 0x2f59], 0
je 0x409adc
mov esi, dword [edi + 0x20]
test esi, esi
je 0x409adc
mov ebx, dword [0x4756b0]
lea ecx, [ebp - 0x10]
mov dword [0x4756b0], edi
mov dword [edi + 0x2f5c], 0
mov dword [ebp - 0x10], 0
call fcn.00416300
mov edx, 0x472500
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.004053b0
mov esi, eax
test esi, esi
je 0x409ad6
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 dword [0x4756b0], ebx
xor esi, esi
cmp dword [edi + 0x2f90], esi
jle 0x409b14
xor ebx, ebx
nop dword [eax + eax]
mov ecx, dword [edi + 0x2f98]
add ecx, ebx
cmp dword [ecx + 4], 6
jne 0x409b08
mov eax, dword [ecx + 0xc]
push ecx
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x2f90]
jl 0x409af0
xor esi, esi
cmp dword [edi + 0x1b60], esi
jle 0x409b5b
nop
mov eax, dword [edi + 0x1b68]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x409b52
mov ecx, ebx
call fcn.00406b30
mov eax, dword [0x4756b0]
test eax, eax
je 0x409b43
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ebx
call fcn.00404c60
add esp, 8
inc esi
cmp esi, dword [edi + 0x1b60]
jl 0x409b20
mov ecx, dword [edi + 0x1b68]
test ecx, ecx
je 0x409ba1
mov eax, dword [0x4756b0]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x409b88
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1b68], 0
mov ecx, dword [edi + 0x1b74]
test ecx, ecx
je 0x409be7
mov eax, dword [0x4756b0]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x409bce
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1b74], 0
mov ecx, dword [edi + 0x1b80]
test ecx, ecx
je 0x409c2d
mov eax, dword [0x4756b0]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x409c14
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1ba8], 0
mov ecx, dword [edi + 0x1b8c]
test ecx, ecx
je 0x409c7d
mov eax, dword [0x4756b0]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x409c64
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1b8c], 0
mov ecx, dword [edi + 0x1b98]
test ecx, ecx
je 0x409cc3
mov eax, dword [0x4756b0]
mov dword [edi + 0x1b94], 0
mov dword [edi + 0x1b90], 0
test eax, eax
je 0x409caa
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1d50], 0
mov dword [edi + 0x1bb0], 0
mov dword [edi + 0x1bac], 0
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c10], 0
mov dword [edi + 0x1bb4], 0
mov ecx, dword [edi + 0x1cec]
test ecx, ecx
je 0x409d45
mov eax, dword [0x4756b0]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x409d2c
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x409d8b
mov eax, dword [0x4756b0]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x409d72
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d04]
test ecx, ecx
je 0x409dd1
mov eax, dword [0x4756b0]
mov dword [edi + 0x1d00], 0
mov dword [edi + 0x1cfc], 0
test eax, eax
je 0x409db8
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1d04], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x409e17
mov eax, dword [0x4756b0]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x409dfe
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1d34], 0
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x409e5d
mov eax, dword [0x4756b0]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x409e44
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1d40], 0
xor ebx, ebx
cmp dword [edi + 0x1d44], ebx
jle 0x409f32
nop dword [eax + eax]
mov eax, dword [edi + 0x1d4c]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x409f25
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409eb9
mov ecx, eax
call fcn.004035f0
mov eax, dword [0x4756b0]
test eax, eax
je 0x409ea8
dec dword [eax + 0x36c]
push dword [0x4756a8]
push dword [ebp - 0x14]
call fcn.00404c60
add esp, 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409eea
mov ecx, eax
call fcn.004035f0
mov eax, dword [0x4756b0]
test eax, eax
je 0x409ed9
dec dword [eax + 0x36c]
push dword [0x4756a8]
push dword [ebp - 0x14]
call fcn.00404c60
add esp, 8
push 0x416ca0
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.0043653e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4756b0]
test eax, eax
je 0x409f16
dec dword [eax + 0x36c]
push dword [0x4756a8]
push esi
call fcn.00404c60
add esp, 8
inc ebx
cmp ebx, dword [edi + 0x1d44]
jl 0x409e70
mov ecx, dword [edi + 0x1d4c]
test ecx, ecx
je 0x409f78
mov eax, dword [0x4756b0]
mov dword [edi + 0x1d48], 0
mov dword [edi + 0x1d44], 0
test eax, eax
je 0x409f5f
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1d4c], 0
lea ecx, [edi + 0x1fb0]
call fcn.00416dd0
mov ecx, dword [edi + 0x1fd8]
test ecx, ecx
je 0x409fc9
mov eax, dword [0x4756b0]
mov dword [edi + 0x1fd4], 0
mov dword [edi + 0x1fd0], 0
test eax, eax
je 0x409fb0
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1fd8], 0
mov ecx, dword [edi + 0x1fe4]
test ecx, ecx
je 0x40a00f
mov eax, dword [0x4756b0]
mov dword [edi + 0x1fe0], 0
mov dword [edi + 0x1fdc], 0
test eax, eax
je 0x409ff6
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1fe4], 0
xor esi, esi
cmp dword [edi + 0x1f54], esi
jle 0x40a066
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [edi + 0x1f5c]
mov dword [ebp - 4], 2
mov ecx, dword [eax + ebx + 0x14]
test ecx, ecx
je 0x40a053
mov eax, dword [0x4756b0]
test eax, eax
je 0x40a044
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
inc esi
mov dword [ebp - 4], 0xffffffff
add ebx, 0x18
cmp esi, dword [edi + 0x1f54]
jl 0x40a020
mov ecx, dword [edi + 0x1f5c]
test ecx, ecx
je 0x40a0ac
mov eax, dword [0x4756b0]
mov dword [edi + 0x1f58], 0
mov dword [edi + 0x1f54], 0
test eax, eax
je 0x40a093
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1f5c], 0
lea ecx, [edi + 0x1f74]
call fcn.00416fc0
xor ebx, ebx
cmp dword [edi + 0x1f68], ebx
jle 0x40a129
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov esi, dword [edi + 0x1f70]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.004222b0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40a110
mov eax, dword [0x4756b0]
test eax, eax
je 0x40a101
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [ebp - 4], 0xffffffff
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x10], ecx
cmp ebx, dword [edi + 0x1f68]
jl 0x40a0d0
mov ecx, dword [edi + 0x1f70]
test ecx, ecx
je 0x40a16f
mov eax, dword [0x4756b0]
mov dword [edi + 0x1f6c], 0
mov dword [edi + 0x1f68], 0
test eax, eax
je 0x40a156
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1f70], 0
mov ecx, dword [edi + 0x1fa8]
test ecx, ecx
je 0x40a1b5
mov eax, dword [0x4756b0]
mov dword [edi + 0x1fa4], 0
mov dword [edi + 0x1fa0], 0
test eax, eax
je 0x40a19c
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x1fa8], 0
mov ecx, dword [edi + 0x2f38]
test ecx, ecx
je 0x40a1fb
mov eax, dword [0x4756b0]
mov dword [edi + 0x2f34], 0
mov dword [edi + 0x2f30], 0
test eax, eax
je 0x40a1e2
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2f38], 0
mov ecx, dword [edi + 0x2f44]
test ecx, ecx
je 0x40a241
mov eax, dword [0x4756b0]
mov dword [edi + 0x2f40], 0
mov dword [edi + 0x2f3c], 0
test eax, eax
je 0x40a228
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2f44], 0
mov ecx, dword [edi + 0x2004]
test ecx, ecx
je 0x40a287
mov eax, dword [0x4756b0]
mov dword [edi + 0x2000], 0
mov dword [edi + 0x1ffc], 0
test eax, eax
je 0x40a26e
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2004], 0
mov ecx, dword [edi + 0x2010]
test ecx, ecx
je 0x40a2cd
mov eax, dword [0x4756b0]
mov dword [edi + 0x200c], 0
mov dword [edi + 0x2008], 0
test eax, eax
je 0x40a2b4
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2010], 0
mov ecx, dword [edi + 0x201c]
test ecx, ecx
je 0x40a313
mov eax, dword [0x4756b0]
mov dword [edi + 0x2018], 0
mov dword [edi + 0x2014], 0
test eax, eax
je 0x40a2fa
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x201c], 0
mov ecx, dword [edi + 0x2f80]
test ecx, ecx
je 0x40a359
mov eax, dword [0x4756b0]
mov dword [edi + 0x2f7c], 0
mov dword [edi + 0x2f78], 0
test eax, eax
je 0x40a340
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2f80], 0
mov ecx, dword [edi + 0x2f74]
test ecx, ecx
je 0x40a39f
mov eax, dword [0x4756b0]
mov dword [edi + 0x2f70], 0
mov dword [edi + 0x2f6c], 0
test eax, eax
je 0x40a386
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2f74], 0
cmp dword [edi + 0x2fa8], 0
je 0x40a3d1
mov esi, dword [edi + 0x2fa8]
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 0x40a3c7
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2fa8], 0
mov ecx, dword [edi + 0x2fb4]
test ecx, ecx
je 0x40a417
mov eax, dword [0x4756b0]
mov dword [edi + 0x2fb0], 0
mov dword [edi + 0x2fac], 0
test eax, eax
je 0x40a3fe
dec dword [eax + 0x36c]
push dword [0x4756a8]
push ecx
call fcn.00404c60
add esp, 8
mov dword [edi + 0x2fb4], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret