Function at 0x4084d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483b30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4a5080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4ac6b0]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x408538
cmp byte [edi + 1], 0
je 0x408538
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x408538
mov ecx, esi
call fcn.00427d60
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x408532
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 0x40857c
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3c0c], 0
mov dword [edi + 0x3c08], 0
test eax, eax
je 0x40856c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c10], 0
cmp byte [edi], 0
je 0x408f14
cmp byte [edi + 0x5a29], 0
je 0x4085e8
mov esi, dword [edi + 0x20]
test esi, esi
je 0x4085e8
mov eax, dword [0x4ac6b0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a2c], 0
call fcn.0041a830
mov edx, 0x490888
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00406cb0
mov esi, eax
test esi, esi
je 0x4085e8
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 0x40862a
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 0x40861b
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 0x408600
xor esi, esi
lea ecx, [edi + 0x3e08]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3e00], esi
jle 0x40867b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408670
mov ecx, eax
call fcn.00409600
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x408662
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 0x408640
jmp 0x40867e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4086b6
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3e04], 0
mov dword [edi + 0x3e00], 0
test eax, eax
je 0x4086a7
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 0x4086f3
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3e10], 0
mov dword [edi + 0x3e0c], 0
test eax, eax
je 0x4086e3
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 0x408730
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x408720
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 0x408777
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x408767
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 0x4087b4
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x4087a4
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.00404bd0
mov ecx, dword [edi + 0x4760]
test ecx, ecx
je 0x408838
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x475c], 0
mov dword [edi + 0x4758], 0
test eax, eax
je 0x408828
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 0x408875
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4768], 0
mov dword [edi + 0x4764], 0
test eax, eax
je 0x408865
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 0x4088b2
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4774], 0
mov dword [edi + 0x4770], 0
test eax, eax
je 0x4088a2
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 0x4088ef
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x47a4], 0
mov dword [edi + 0x47a0], 0
test eax, eax
je 0x4088df
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 0x40892c
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x47b0], 0
mov dword [edi + 0x47ac], 0
test eax, eax
je 0x40891c
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 0x4089ed
nop dword [eax]
mov eax, dword [edi + 0x47c4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x4089dd
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408980
mov ecx, eax
call fcn.00404990
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x408978
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 0x4089a8
mov ecx, eax
call fcn.00404990
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x4089a0
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x41b910
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.00482115
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x4089d4
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 0x408940
mov ecx, dword [edi + 0x47c4]
test ecx, ecx
je 0x408a2a
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x47bc], 0
test eax, eax
je 0x408a1a
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47c4], 0
lea ecx, [edi + 0x4a3c]
call fcn.0041b970
mov ecx, dword [edi + 0x4a64]
test ecx, ecx
je 0x408a72
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4a60], 0
mov dword [edi + 0x4a5c], 0
test eax, eax
je 0x408a62
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 0x408aaf
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x408a9f
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 0x408afc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x49e8]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x408ae6
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x408add
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 0x408ac0
mov ecx, dword [edi + 0x49e8]
test ecx, ecx
je 0x408b39
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x49e4], 0
mov dword [edi + 0x49e0], 0
test eax, eax
je 0x408b29
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49e8], 0
lea ecx, [edi + 0x4a00]
call fcn.0041bb20
cmp dword [edi + 0x49f4], 0
mov dword [ebp - 0x10], 0
jle 0x408bb2
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.00427690
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408b93
mov eax, dword [0x4ac6b0]
test eax, eax
je 0x408b8d
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 0x408b60
mov ecx, dword [edi + 0x49fc]
test ecx, ecx
je 0x408bef
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x49f8], 0
mov dword [edi + 0x49f4], 0
test eax, eax
je 0x408bdf
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 0x408c2c
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4a30], 0
mov dword [edi + 0x4a2c], 0
test eax, eax
je 0x408c1c
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 0x408c69
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x59f4], 0
mov dword [edi + 0x59f0], 0
test eax, eax
je 0x408c59
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 0x408ca6
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5a00], 0
mov dword [edi + 0x59fc], 0
test eax, eax
je 0x408c96
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 0x408ce3
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4aa0], 0
mov dword [edi + 0x4a9c], 0
test eax, eax
je 0x408cd3
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 0x408d20
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4aac], 0
mov dword [edi + 0x4aa8], 0
test eax, eax
je 0x408d10
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 0x408d5d
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x4ab8], 0
mov dword [edi + 0x4ab4], 0
test eax, eax
je 0x408d4d
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 0x408da4
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x590c], 0
mov dword [edi + 0x5908], 0
test eax, eax
je 0x408d94
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 0x408de1
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5a4c], 0
mov dword [edi + 0x5a48], 0
test eax, eax
je 0x408dd1
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 0x408e1e
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5a40], 0
mov dword [edi + 0x5a3c], 0
test eax, eax
je 0x408e0e
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a44], 0
cmp dword [edi + 0x5a94], 0
je 0x408e50
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 0x408e46
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 0x408e8d
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5a98], 0
test eax, eax
je 0x408e7d
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 0x408eca
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5ac8], 0
mov dword [edi + 0x5ac4], 0
test eax, eax
je 0x408eba
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 0x408f07
mov eax, dword [0x4ac6b0]
mov dword [edi + 0x5ad4], 0
mov dword [edi + 0x5ad0], 0
test eax, eax
je 0x408ef7
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