Function at 0x406f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ff60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x468040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4915c4]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x406f98
cmp byte [edi + 1], 0
je 0x406f98
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x406f98
mov ecx, esi
call fcn.00426920
mov eax, dword [0x4915c4]
test eax, eax
je 0x406f92
dec dword [eax + 0xb4]
push esi
call ebx
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3c0c]
test ecx, ecx
je 0x406fdc
mov eax, dword [0x4915c4]
mov dword [edi + 0x3c08], 0
mov dword [edi + 0x3c04], 0
test eax, eax
je 0x406fcc
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c0c], 0
cmp byte [edi], 0
je 0x407974
cmp byte [edi + 0x5a21], 0
je 0x407048
mov esi, dword [edi + 0x20]
test esi, esi
je 0x407048
mov eax, dword [0x4915c4]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a24], 0
call fcn.00419640
mov edx, 0x464d20
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.004046c0
mov esi, eax
test esi, esi
je 0x407048
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
xor esi, esi
cmp dword [edi + 0x5a58], esi
jle 0x40708a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x5a60]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x40707b
mov eax, dword [edx + 0xc]
push edx
push edi
call eax
mov ecx, dword [ebp - 0x10]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x5a58]
jl 0x407060
xor esi, esi
lea ecx, [edi + 0x3e00]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3df8], esi
jle 0x4070db
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4070d0
mov ecx, eax
call fcn.00408060
mov eax, dword [0x4915c4]
test eax, eax
je 0x4070c2
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3e00]
inc esi
cmp esi, dword [edi + 0x3df8]
jl 0x4070a0
jmp 0x4070de
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x407116
mov eax, dword [0x4915c4]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x407107
dec dword [eax + 0xb4]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3e0c]
test ecx, ecx
je 0x407153
mov eax, dword [0x4915c4]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x407143
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e0c], 0
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
je 0x407190
mov eax, dword [0x4915c4]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x407180
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e18], 0
mov dword [edi + 0x3e40], 0
mov ecx, dword [edi + 0x3e24]
test ecx, ecx
je 0x4071d7
mov eax, dword [0x4915c4]
mov dword [edi + 0x3e20], 0
mov dword [edi + 0x3e1c], 0
test eax, eax
je 0x4071c7
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e24], 0
mov ecx, dword [edi + 0x3e30]
test ecx, ecx
je 0x407214
mov eax, dword [0x4915c4]
mov dword [edi + 0x3e2c], 0
mov dword [edi + 0x3e28], 0
test eax, eax
je 0x407204
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e30], 0
lea ecx, [edi + 0x4558]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x3e48], 0
mov dword [edi + 0x3e44], 0
mov dword [edi + 0x3ebc], 0
mov dword [edi + 0x3ea8], 0
mov dword [edi + 0x3e4c], 0
call fcn.00402190
mov ecx, dword [edi + 0x4758]
test ecx, ecx
je 0x407298
mov eax, dword [0x4915c4]
mov dword [edi + 0x4754], 0
mov dword [edi + 0x4750], 0
test eax, eax
je 0x407288
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4758], 0
mov ecx, dword [edi + 0x4764]
test ecx, ecx
je 0x4072d5
mov eax, dword [0x4915c4]
mov dword [edi + 0x4760], 0
mov dword [edi + 0x475c], 0
test eax, eax
je 0x4072c5
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4764], 0
mov ecx, dword [edi + 0x4770]
test ecx, ecx
je 0x407312
mov eax, dword [0x4915c4]
mov dword [edi + 0x476c], 0
mov dword [edi + 0x4768], 0
test eax, eax
je 0x407302
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4770], 0
mov ecx, dword [edi + 0x47a0]
test ecx, ecx
je 0x40734f
mov eax, dword [0x4915c4]
mov dword [edi + 0x479c], 0
mov dword [edi + 0x4798], 0
test eax, eax
je 0x40733f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a0], 0
mov ecx, dword [edi + 0x47ac]
test ecx, ecx
je 0x40738c
mov eax, dword [0x4915c4]
mov dword [edi + 0x47a8], 0
mov dword [edi + 0x47a4], 0
test eax, eax
je 0x40737c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47ac], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x47b4], ecx
jle 0x40744d
nop dword [eax]
mov eax, dword [edi + 0x47bc]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40743d
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4073e0
mov ecx, eax
call fcn.00401f30
mov eax, dword [0x4915c4]
test eax, eax
je 0x4073d8
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407408
mov ecx, eax
call fcn.00401f30
mov eax, dword [0x4915c4]
test eax, eax
je 0x407400
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x41a730
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.0043e97f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4915c4]
test eax, eax
je 0x407434
dec dword [eax + 0xb4]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x47b4]
jl 0x4073a0
mov ecx, dword [edi + 0x47bc]
test ecx, ecx
je 0x40748a
mov eax, dword [0x4915c4]
mov dword [edi + 0x47b8], 0
mov dword [edi + 0x47b4], 0
test eax, eax
je 0x40747a
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47bc], 0
lea ecx, [edi + 0x4a34]
call fcn.0041a790
mov ecx, dword [edi + 0x4a5c]
test ecx, ecx
je 0x4074d2
mov eax, dword [0x4915c4]
mov dword [edi + 0x4a58], 0
mov dword [edi + 0x4a54], 0
test eax, eax
je 0x4074c2
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a5c], 0
mov ecx, dword [edi + 0x4a68]
test ecx, ecx
je 0x40750f
mov eax, dword [0x4915c4]
mov dword [edi + 0x4a64], 0
mov dword [edi + 0x4a60], 0
test eax, eax
je 0x4074ff
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a68], 0
xor esi, esi
cmp dword [edi + 0x49d8], esi
jle 0x40755c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x49e0]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x407546
mov eax, dword [0x4915c4]
test eax, eax
je 0x40753d
dec dword [eax + 0xb4]
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 + 0x49d8]
jl 0x407520
mov ecx, dword [edi + 0x49e0]
test ecx, ecx
je 0x407599
mov eax, dword [0x4915c4]
mov dword [edi + 0x49dc], 0
mov dword [edi + 0x49d8], 0
test eax, eax
je 0x407589
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49e0], 0
lea ecx, [edi + 0x49f8]
call fcn.0041a940
cmp dword [edi + 0x49ec], 0
mov dword [ebp - 0x10], 0
jle 0x407612
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x49f4]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.00426250
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4075f3
mov eax, dword [0x4915c4]
test eax, eax
je 0x4075ed
dec dword [eax + 0xb4]
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 + 0x49ec]
jl 0x4075c0
mov ecx, dword [edi + 0x49f4]
test ecx, ecx
je 0x40764f
mov eax, dword [0x4915c4]
mov dword [edi + 0x49f0], 0
mov dword [edi + 0x49ec], 0
test eax, eax
je 0x40763f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49f4], 0
mov ecx, dword [edi + 0x4a2c]
test ecx, ecx
je 0x40768c
mov eax, dword [0x4915c4]
mov dword [edi + 0x4a28], 0
mov dword [edi + 0x4a24], 0
test eax, eax
je 0x40767c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a2c], 0
mov ecx, dword [edi + 0x59f0]
test ecx, ecx
je 0x4076c9
mov eax, dword [0x4915c4]
mov dword [edi + 0x59ec], 0
mov dword [edi + 0x59e8], 0
test eax, eax
je 0x4076b9
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59f0], 0
mov ecx, dword [edi + 0x59fc]
test ecx, ecx
je 0x407706
mov eax, dword [0x4915c4]
mov dword [edi + 0x59f8], 0
mov dword [edi + 0x59f4], 0
test eax, eax
je 0x4076f6
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59fc], 0
mov ecx, dword [edi + 0x4a9c]
test ecx, ecx
je 0x407743
mov eax, dword [0x4915c4]
mov dword [edi + 0x4a98], 0
mov dword [edi + 0x4a94], 0
test eax, eax
je 0x407733
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a9c], 0
mov ecx, dword [edi + 0x4aa8]
test ecx, ecx
je 0x407780
mov eax, dword [0x4915c4]
mov dword [edi + 0x4aa4], 0
mov dword [edi + 0x4aa0], 0
test eax, eax
je 0x407770
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa8], 0
mov ecx, dword [edi + 0x4ab4]
test ecx, ecx
je 0x4077bd
mov eax, dword [0x4915c4]
mov dword [edi + 0x4ab0], 0
mov dword [edi + 0x4aac], 0
test eax, eax
je 0x4077ad
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4ab4], 0
mov dword [edi + 0x58fc], 0
mov ecx, dword [edi + 0x5908]
test ecx, ecx
je 0x407804
mov eax, dword [0x4915c4]
mov dword [edi + 0x5904], 0
mov dword [edi + 0x5900], 0
test eax, eax
je 0x4077f4
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5908], 0
mov ecx, dword [edi + 0x5a48]
test ecx, ecx
je 0x407841
mov eax, dword [0x4915c4]
mov dword [edi + 0x5a44], 0
mov dword [edi + 0x5a40], 0
test eax, eax
je 0x407831
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a48], 0
mov ecx, dword [edi + 0x5a3c]
test ecx, ecx
je 0x40787e
mov eax, dword [0x4915c4]
mov dword [edi + 0x5a38], 0
mov dword [edi + 0x5a34], 0
test eax, eax
je 0x40786e
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a3c], 0
cmp dword [edi + 0x5a8c], 0
je 0x4078b0
mov esi, dword [edi + 0x5a8c]
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 0x4078a6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a8c], 0
mov ecx, dword [edi + 0x5a98]
test ecx, ecx
je 0x4078ed
mov eax, dword [0x4915c4]
mov dword [edi + 0x5a94], 0
mov dword [edi + 0x5a90], 0
test eax, eax
je 0x4078dd
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a98], 0
mov ecx, dword [edi + 0x5ac4]
test ecx, ecx
je 0x40792a
mov eax, dword [0x4915c4]
mov dword [edi + 0x5ac0], 0
mov dword [edi + 0x5abc], 0
test eax, eax
je 0x40791a
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ac4], 0
mov ecx, dword [edi + 0x5ad0]
test ecx, ecx
je 0x407967
mov eax, dword [0x4915c4]
mov dword [edi + 0x5acc], 0
mov dword [edi + 0x5ac8], 0
test eax, eax
je 0x407957
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ad0], 0
mov dword [edi + 0x5ad4], 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