Function at 0x408c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494250
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b7080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4be710]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x408cd8
cmp byte [edi + 1], 0
je 0x408cd8
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x408cd8
mov ecx, esi
call fcn.004299a0
mov eax, dword [0x4be710]
test eax, eax
je 0x408cd2
dec dword [eax + 0xb4]
push esi
call ebx
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3c10]
test ecx, ecx
je 0x408d1c
mov eax, dword [0x4be710]
mov dword [edi + 0x3c0c], 0
mov dword [edi + 0x3c08], 0
test eax, eax
je 0x408d0c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c10], 0
cmp byte [edi], 0
je 0x4096b4
cmp byte [edi + 0x5a29], 0
je 0x408d88
mov esi, dword [edi + 0x20]
test esi, esi
je 0x408d88
mov eax, dword [0x4be710]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a2c], 0
call fcn.0041ba10
mov edx, 0x4a18c8
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00406f00
mov esi, eax
test esi, esi
je 0x408d88
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 + 0x5a60], esi
jle 0x408dca
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x5a68]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x408dbb
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 + 0x5a60]
jl 0x408da0
xor esi, esi
lea ecx, [edi + 0x3e08]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3e00], esi
jle 0x408e1b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e10
mov ecx, eax
call fcn.00409da0
mov eax, dword [0x4be710]
test eax, eax
je 0x408e02
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3e08]
inc esi
cmp esi, dword [edi + 0x3e00]
jl 0x408de0
jmp 0x408e1e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x408e56
mov eax, dword [0x4be710]
mov dword [edi + 0x3e04], 0
mov dword [edi + 0x3e00], 0
test eax, eax
je 0x408e47
dec dword [eax + 0xb4]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3e14]
test ecx, ecx
je 0x408e93
mov eax, dword [0x4be710]
mov dword [edi + 0x3e10], 0
mov dword [edi + 0x3e0c], 0
test eax, eax
je 0x408e83
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e14], 0
mov ecx, dword [edi + 0x3e20]
test ecx, ecx
je 0x408ed0
mov eax, dword [0x4be710]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x408ec0
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e20], 0
mov dword [edi + 0x3e48], 0
mov ecx, dword [edi + 0x3e2c]
test ecx, ecx
je 0x408f17
mov eax, dword [0x4be710]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x408f07
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e2c], 0
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
je 0x408f54
mov eax, dword [0x4be710]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x408f44
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e38], 0
lea ecx, [edi + 0x4560]
mov dword [edi + 0x47c8], 0
mov dword [edi + 0x3e50], 0
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3ec4], 0
mov dword [edi + 0x3eb0], 0
mov dword [edi + 0x3e54], 0
call fcn.00404b80
mov ecx, dword [edi + 0x4760]
test ecx, ecx
je 0x408fd8
mov eax, dword [0x4be710]
mov dword [edi + 0x475c], 0
mov dword [edi + 0x4758], 0
test eax, eax
je 0x408fc8
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4760], 0
mov ecx, dword [edi + 0x476c]
test ecx, ecx
je 0x409015
mov eax, dword [0x4be710]
mov dword [edi + 0x4768], 0
mov dword [edi + 0x4764], 0
test eax, eax
je 0x409005
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x476c], 0
mov ecx, dword [edi + 0x4778]
test ecx, ecx
je 0x409052
mov eax, dword [0x4be710]
mov dword [edi + 0x4774], 0
mov dword [edi + 0x4770], 0
test eax, eax
je 0x409042
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4778], 0
mov ecx, dword [edi + 0x47a8]
test ecx, ecx
je 0x40908f
mov eax, dword [0x4be710]
mov dword [edi + 0x47a4], 0
mov dword [edi + 0x47a0], 0
test eax, eax
je 0x40907f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a8], 0
mov ecx, dword [edi + 0x47b4]
test ecx, ecx
je 0x4090cc
mov eax, dword [0x4be710]
mov dword [edi + 0x47b0], 0
mov dword [edi + 0x47ac], 0
test eax, eax
je 0x4090bc
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47b4], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x47bc], ecx
jle 0x40918d
nop dword [eax]
mov eax, dword [edi + 0x47c4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40917d
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409120
mov ecx, eax
call fcn.00404840
mov eax, dword [0x4be710]
test eax, eax
je 0x409118
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 0x409148
mov ecx, eax
call fcn.00404840
mov eax, dword [0x4be710]
test eax, eax
je 0x409140
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x41cb00
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.00492825
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4be710]
test eax, eax
je 0x409174
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 + 0x47bc]
jl 0x4090e0
mov ecx, dword [edi + 0x47c4]
test ecx, ecx
je 0x4091ca
mov eax, dword [0x4be710]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x47bc], 0
test eax, eax
je 0x4091ba
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47c4], 0
lea ecx, [edi + 0x4a3c]
call fcn.0041cb60
mov ecx, dword [edi + 0x4a64]
test ecx, ecx
je 0x409212
mov eax, dword [0x4be710]
mov dword [edi + 0x4a60], 0
mov dword [edi + 0x4a5c], 0
test eax, eax
je 0x409202
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a64], 0
mov ecx, dword [edi + 0x4a70]
test ecx, ecx
je 0x40924f
mov eax, dword [0x4be710]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x40923f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a70], 0
xor esi, esi
cmp dword [edi + 0x49e0], esi
jle 0x40929c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x49e8]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x409286
mov eax, dword [0x4be710]
test eax, eax
je 0x40927d
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 + 0x49e0]
jl 0x409260
mov ecx, dword [edi + 0x49e8]
test ecx, ecx
je 0x4092d9
mov eax, dword [0x4be710]
mov dword [edi + 0x49e4], 0
mov dword [edi + 0x49e0], 0
test eax, eax
je 0x4092c9
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49e8], 0
lea ecx, [edi + 0x4a00]
call fcn.0041cd10
cmp dword [edi + 0x49f4], 0
mov dword [ebp - 0x10], 0
jle 0x409352
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x49fc]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.00429250
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409333
mov eax, dword [0x4be710]
test eax, eax
je 0x40932d
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 + 0x49f4]
jl 0x409300
mov ecx, dword [edi + 0x49fc]
test ecx, ecx
je 0x40938f
mov eax, dword [0x4be710]
mov dword [edi + 0x49f8], 0
mov dword [edi + 0x49f4], 0
test eax, eax
je 0x40937f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49fc], 0
mov ecx, dword [edi + 0x4a34]
test ecx, ecx
je 0x4093cc
mov eax, dword [0x4be710]
mov dword [edi + 0x4a30], 0
mov dword [edi + 0x4a2c], 0
test eax, eax
je 0x4093bc
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a34], 0
mov ecx, dword [edi + 0x59f8]
test ecx, ecx
je 0x409409
mov eax, dword [0x4be710]
mov dword [edi + 0x59f4], 0
mov dword [edi + 0x59f0], 0
test eax, eax
je 0x4093f9
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59f8], 0
mov ecx, dword [edi + 0x5a04]
test ecx, ecx
je 0x409446
mov eax, dword [0x4be710]
mov dword [edi + 0x5a00], 0
mov dword [edi + 0x59fc], 0
test eax, eax
je 0x409436
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a04], 0
mov ecx, dword [edi + 0x4aa4]
test ecx, ecx
je 0x409483
mov eax, dword [0x4be710]
mov dword [edi + 0x4aa0], 0
mov dword [edi + 0x4a9c], 0
test eax, eax
je 0x409473
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa4], 0
mov ecx, dword [edi + 0x4ab0]
test ecx, ecx
je 0x4094c0
mov eax, dword [0x4be710]
mov dword [edi + 0x4aac], 0
mov dword [edi + 0x4aa8], 0
test eax, eax
je 0x4094b0
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4ab0], 0
mov ecx, dword [edi + 0x4abc]
test ecx, ecx
je 0x4094fd
mov eax, dword [0x4be710]
mov dword [edi + 0x4ab8], 0
mov dword [edi + 0x4ab4], 0
test eax, eax
je 0x4094ed
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4abc], 0
mov dword [edi + 0x5904], 0
mov ecx, dword [edi + 0x5910]
test ecx, ecx
je 0x409544
mov eax, dword [0x4be710]
mov dword [edi + 0x590c], 0
mov dword [edi + 0x5908], 0
test eax, eax
je 0x409534
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5910], 0
mov ecx, dword [edi + 0x5a50]
test ecx, ecx
je 0x409581
mov eax, dword [0x4be710]
mov dword [edi + 0x5a4c], 0
mov dword [edi + 0x5a48], 0
test eax, eax
je 0x409571
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a50], 0
mov ecx, dword [edi + 0x5a44]
test ecx, ecx
je 0x4095be
mov eax, dword [0x4be710]
mov dword [edi + 0x5a40], 0
mov dword [edi + 0x5a3c], 0
test eax, eax
je 0x4095ae
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a44], 0
cmp dword [edi + 0x5a94], 0
je 0x4095f0
mov esi, dword [edi + 0x5a94]
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 0x4095e6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a94], 0
mov ecx, dword [edi + 0x5aa0]
test ecx, ecx
je 0x40962d
mov eax, dword [0x4be710]
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5a98], 0
test eax, eax
je 0x40961d
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aa0], 0
mov ecx, dword [edi + 0x5acc]
test ecx, ecx
je 0x40966a
mov eax, dword [0x4be710]
mov dword [edi + 0x5ac8], 0
mov dword [edi + 0x5ac4], 0
test eax, eax
je 0x40965a
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5acc], 0
mov ecx, dword [edi + 0x5ad8]
test ecx, ecx
je 0x4096a7
mov eax, dword [0x4be710]
mov dword [edi + 0x5ad4], 0
mov dword [edi + 0x5ad0], 0
test eax, eax
je 0x409697
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ad8], 0
mov dword [edi + 0x5adc], 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