Function at 0x40af00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43f00c]
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 0x40b002
cmp byte [edi + 1], 0
je 0x40b002
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x40b002
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00423ea0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40af8b
mov eax, dword [0x43f718]
test eax, eax
je 0x40af7c
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x40afb4
mov eax, dword [0x43f718]
test eax, eax
je 0x40afa5
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40afdd
mov eax, dword [0x43f718]
test eax, eax
je 0x40afce
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43f718]
test eax, eax
je 0x40aff3
dec dword [eax + 0x36c]
push dword [0x43f710]
push esi
call fcn.00405e80
add esp, 8
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x40b9ba
cmp byte [edi + 0x2f59], 0
je 0x40b085
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40b085
mov ebx, dword [0x43f718]
lea ecx, [ebp - 0x10]
mov dword [0x43f718], edi
mov dword [edi + 0x2f5c], 0
mov dword [ebp - 0x10], 0
call fcn.004178c0
mov edx, 0x43ba50
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.004065c0
mov esi, eax
test esi, esi
je 0x40b07f
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 [0x43f718], ebx
xor esi, esi
cmp dword [edi + 0x2f90], esi
jle 0x40b0b5
xor ebx, ebx
mov ecx, dword [edi + 0x2f98]
add ecx, ebx
cmp dword [ecx + 4], 6
jne 0x40b0a9
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 0x40b091
xor esi, esi
cmp dword [edi + 0x1b60], esi
jle 0x40b0fb
nop
mov eax, dword [edi + 0x1b68]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x40b0f2
mov ecx, ebx
call fcn.004080e0
mov eax, dword [0x43f718]
test eax, eax
je 0x40b0e3
dec dword [eax + 0x36c]
push dword [0x43f710]
push ebx
call fcn.00405e80
add esp, 8
inc esi
cmp esi, dword [edi + 0x1b60]
jl 0x40b0c0
mov ecx, dword [edi + 0x1b68]
test ecx, ecx
je 0x40b141
mov eax, dword [0x43f718]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x40b128
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1b68], 0
mov ecx, dword [edi + 0x1b74]
test ecx, ecx
je 0x40b187
mov eax, dword [0x43f718]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x40b16e
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1b74], 0
mov ecx, dword [edi + 0x1b80]
test ecx, ecx
je 0x40b1cd
mov eax, dword [0x43f718]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x40b1b4
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1ba8], 0
mov ecx, dword [edi + 0x1b8c]
test ecx, ecx
je 0x40b21d
mov eax, dword [0x43f718]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x40b204
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1b8c], 0
mov ecx, dword [edi + 0x1b98]
test ecx, ecx
je 0x40b263
mov eax, dword [0x43f718]
mov dword [edi + 0x1b94], 0
mov dword [edi + 0x1b90], 0
test eax, eax
je 0x40b24a
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
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 0x40b2e5
mov eax, dword [0x43f718]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x40b2cc
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x40b32b
mov eax, dword [0x43f718]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x40b312
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d04]
test ecx, ecx
je 0x40b371
mov eax, dword [0x43f718]
mov dword [edi + 0x1d00], 0
mov dword [edi + 0x1cfc], 0
test eax, eax
je 0x40b358
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1d04], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x40b3b7
mov eax, dword [0x43f718]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x40b39e
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1d34], 0
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x40b3fd
mov eax, dword [0x43f718]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x40b3e4
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1d40], 0
xor ebx, ebx
cmp dword [edi + 0x1d44], ebx
jle 0x40b4d2
nop dword [eax + eax]
mov eax, dword [edi + 0x1d4c]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40b4c5
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b459
mov ecx, eax
call fcn.004047e0
mov eax, dword [0x43f718]
test eax, eax
je 0x40b448
dec dword [eax + 0x36c]
push dword [0x43f710]
push dword [ebp - 0x14]
call fcn.00405e80
add esp, 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b48a
mov ecx, eax
call fcn.004047e0
mov eax, dword [0x43f718]
test eax, eax
je 0x40b479
dec dword [eax + 0x36c]
push dword [0x43f710]
push dword [ebp - 0x14]
call fcn.00405e80
add esp, 8
push 0x418230
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 5
push eax
call fcn.00434ab8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43f718]
test eax, eax
je 0x40b4b6
dec dword [eax + 0x36c]
push dword [0x43f710]
push esi
call fcn.00405e80
add esp, 8
inc ebx
cmp ebx, dword [edi + 0x1d44]
jl 0x40b410
mov ecx, dword [edi + 0x1d4c]
test ecx, ecx
je 0x40b518
mov eax, dword [0x43f718]
mov dword [edi + 0x1d48], 0
mov dword [edi + 0x1d44], 0
test eax, eax
je 0x40b4ff
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1d4c], 0
lea ecx, [edi + 0x1fb0]
call fcn.00418360
mov ecx, dword [edi + 0x1fd8]
test ecx, ecx
je 0x40b569
mov eax, dword [0x43f718]
mov dword [edi + 0x1fd4], 0
mov dword [edi + 0x1fd0], 0
test eax, eax
je 0x40b550
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1fd8], 0
mov ecx, dword [edi + 0x1fe4]
test ecx, ecx
je 0x40b5af
mov eax, dword [0x43f718]
mov dword [edi + 0x1fe0], 0
mov dword [edi + 0x1fdc], 0
test eax, eax
je 0x40b596
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1fe4], 0
xor esi, esi
cmp dword [edi + 0x1f54], esi
jle 0x40b606
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [edi + 0x1f5c]
mov dword [ebp - 4], 6
mov ecx, dword [eax + ebx + 0x14]
test ecx, ecx
je 0x40b5f3
mov eax, dword [0x43f718]
test eax, eax
je 0x40b5e4
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
inc esi
mov dword [ebp - 4], 0xffffffff
add ebx, 0x18
cmp esi, dword [edi + 0x1f54]
jl 0x40b5c0
mov ecx, dword [edi + 0x1f5c]
test ecx, ecx
je 0x40b64c
mov eax, dword [0x43f718]
mov dword [edi + 0x1f58], 0
mov dword [edi + 0x1f54], 0
test eax, eax
je 0x40b633
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1f5c], 0
lea ecx, [edi + 0x1f74]
call fcn.00418550
xor ebx, ebx
cmp dword [edi + 0x1f68], ebx
jle 0x40b6c9
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], 7
call fcn.00423790
mov byte [ebp - 4], 8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b6b0
mov eax, dword [0x43f718]
test eax, eax
je 0x40b6a1
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
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 0x40b670
mov ecx, dword [edi + 0x1f70]
test ecx, ecx
je 0x40b70f
mov eax, dword [0x43f718]
mov dword [edi + 0x1f6c], 0
mov dword [edi + 0x1f68], 0
test eax, eax
je 0x40b6f6
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1f70], 0
mov ecx, dword [edi + 0x1fa8]
test ecx, ecx
je 0x40b755
mov eax, dword [0x43f718]
mov dword [edi + 0x1fa4], 0
mov dword [edi + 0x1fa0], 0
test eax, eax
je 0x40b73c
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x1fa8], 0
mov ecx, dword [edi + 0x2f38]
test ecx, ecx
je 0x40b79b
mov eax, dword [0x43f718]
mov dword [edi + 0x2f34], 0
mov dword [edi + 0x2f30], 0
test eax, eax
je 0x40b782
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2f38], 0
mov ecx, dword [edi + 0x2f44]
test ecx, ecx
je 0x40b7e1
mov eax, dword [0x43f718]
mov dword [edi + 0x2f40], 0
mov dword [edi + 0x2f3c], 0
test eax, eax
je 0x40b7c8
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2f44], 0
mov ecx, dword [edi + 0x2004]
test ecx, ecx
je 0x40b827
mov eax, dword [0x43f718]
mov dword [edi + 0x2000], 0
mov dword [edi + 0x1ffc], 0
test eax, eax
je 0x40b80e
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2004], 0
mov ecx, dword [edi + 0x2010]
test ecx, ecx
je 0x40b86d
mov eax, dword [0x43f718]
mov dword [edi + 0x200c], 0
mov dword [edi + 0x2008], 0
test eax, eax
je 0x40b854
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2010], 0
mov ecx, dword [edi + 0x201c]
test ecx, ecx
je 0x40b8b3
mov eax, dword [0x43f718]
mov dword [edi + 0x2018], 0
mov dword [edi + 0x2014], 0
test eax, eax
je 0x40b89a
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x201c], 0
mov ecx, dword [edi + 0x2f80]
test ecx, ecx
je 0x40b8f9
mov eax, dword [0x43f718]
mov dword [edi + 0x2f7c], 0
mov dword [edi + 0x2f78], 0
test eax, eax
je 0x40b8e0
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2f80], 0
mov ecx, dword [edi + 0x2f74]
test ecx, ecx
je 0x40b93f
mov eax, dword [0x43f718]
mov dword [edi + 0x2f70], 0
mov dword [edi + 0x2f6c], 0
test eax, eax
je 0x40b926
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
add esp, 8
mov dword [edi + 0x2f74], 0
cmp dword [edi + 0x2fa8], 0
je 0x40b971
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 0x40b967
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 0x40b9b7
mov eax, dword [0x43f718]
mov dword [edi + 0x2fb0], 0
mov dword [edi + 0x2fac], 0
test eax, eax
je 0x40b99e
dec dword [eax + 0x36c]
push dword [0x43f710]
push ecx
call fcn.00405e80
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