Function at 0x4080a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d430
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40810a
cmp byte [esi + 1], 0
je 0x40810a
mov byte [eax + 0x10], 0
mov ebx, dword [esi + 0x98]
test ebx, ebx
je 0x40810a
mov ecx, ebx
call fcn.0042af00
mov eax, dword [0x445600]
test eax, eax
je 0x408104
dec dword [eax + 0x374]
push ebx
call edi
add esp, 4
cmp byte [esi], 0
mov dword [esi + 0x98], 0
je 0x408952
cmp byte [esi + 0x2fe0], 0
je 0x40818b
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x40818b
mov eax, dword [0x445600]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [0x445600], esi
mov dword [esi + 0x2fe4], 0
mov dword [ebp - 0x10], 0
call fcn.004155e0
mov edx, 0x43e4bc
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.00402f80
mov ebx, eax
test ebx, ebx
je 0x408193
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x408193
mov eax, dword [0x445600]
mov dword [ebp - 0x14], eax
mov dword [0x445600], esi
call fcn.00417840
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [0x445600], eax
cmp dword [esi + 0x2fb8], ebx
jle 0x4081e8
mov eax, dword [esi + 0x2fc0]
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4081df
mov ecx, eax
call fcn.00418c10
mov eax, dword [0x445600]
test eax, eax
je 0x4081d7
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x2fb8]
jl 0x4081b0
xor ebx, ebx
cmp dword [esi + 0x3018], ebx
jle 0x40822a
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x3020]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x40821b
push eax
mov eax, dword [eax + 0xc]
push esi
call eax
mov ecx, dword [ebp - 0x14]
add esp, 8
inc ebx
add ecx, 0x14
mov dword [ebp - 0x14], ecx
cmp ebx, dword [esi + 0x3018]
jl 0x408200
xor ebx, ebx
cmp dword [esi + 0x1c00], ebx
jle 0x40826b
mov eax, dword [esi + 0x1c08]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408262
mov ecx, eax
call fcn.00405190
mov eax, dword [0x445600]
test eax, eax
je 0x40825a
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x1c00]
jl 0x408234
mov ecx, dword [esi + 0x1c08]
test ecx, ecx
je 0x4082a8
mov eax, dword [0x445600]
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c00], 0
test eax, eax
je 0x408298
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c08], 0
mov ecx, dword [esi + 0x1c14]
test ecx, ecx
je 0x4082e5
mov eax, dword [0x445600]
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c0c], 0
test eax, eax
je 0x4082d5
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c14], 0
mov ecx, dword [esi + 0x1c20]
test ecx, ecx
je 0x408322
mov eax, dword [0x445600]
mov dword [esi + 0x1c1c], 0
mov dword [esi + 0x1c18], 0
test eax, eax
je 0x408312
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c20], 0
mov dword [esi + 0x1c48], 0
mov ecx, dword [esi + 0x1c2c]
test ecx, ecx
je 0x408369
mov eax, dword [0x445600]
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c24], 0
test eax, eax
je 0x408359
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c2c], 0
mov ecx, dword [esi + 0x1c38]
test ecx, ecx
je 0x4083a6
mov eax, dword [0x445600]
mov dword [esi + 0x1c34], 0
mov dword [esi + 0x1c30], 0
test eax, eax
je 0x408396
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c38], 0
mov dword [esi + 0x1e18], 0
mov dword [esi + 0x1c50], 0
mov dword [esi + 0x1c4c], 0
mov dword [esi + 0x1cc4], 0
mov dword [esi + 0x1cb0], 0
mov dword [esi + 0x1c58], 0
mov ecx, dword [esi + 0x1d78]
test ecx, ecx
je 0x40841f
mov eax, dword [0x445600]
mov dword [esi + 0x1d74], 0
mov dword [esi + 0x1d70], 0
test eax, eax
je 0x40840f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d78], 0
mov ecx, dword [esi + 0x1d84]
test ecx, ecx
je 0x40845c
mov eax, dword [0x445600]
mov dword [esi + 0x1d80], 0
mov dword [esi + 0x1d7c], 0
test eax, eax
je 0x40844c
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d84], 0
mov ecx, dword [esi + 0x1d90]
test ecx, ecx
je 0x408499
mov eax, dword [0x445600]
mov dword [esi + 0x1d8c], 0
mov dword [esi + 0x1d88], 0
test eax, eax
je 0x408489
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d90], 0
mov ecx, dword [esi + 0x1dc0]
test ecx, ecx
je 0x4084d6
mov eax, dword [0x445600]
mov dword [esi + 0x1dbc], 0
mov dword [esi + 0x1db8], 0
test eax, eax
je 0x4084c6
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dc0], 0
mov ecx, dword [esi + 0x1dcc]
test ecx, ecx
je 0x408513
mov eax, dword [0x445600]
mov dword [esi + 0x1dc8], 0
mov dword [esi + 0x1dc4], 0
test eax, eax
je 0x408503
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dcc], 0
xor ecx, ecx
mov dword [esi + 0x1de8], 0
mov dword [esi + 0x1de4], 0
mov dword [esi + 0x1de0], 0
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x1dd0], ecx
jle 0x4085ee
mov eax, dword [esi + 0x1dd8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x4085de
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40857b
mov ecx, eax
call fcn.004011f0
mov eax, dword [0x445600]
test eax, eax
je 0x408573
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4085a3
mov ecx, eax
call fcn.004011f0
mov eax, dword [0x445600]
test eax, eax
je 0x40859b
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
push 0x41f600
push 2
push 0xc
lea eax, [ebx + 0xb0]
mov dword [ebp - 4], 0
push eax
call fcn.0043c3b9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x445600]
test eax, eax
je 0x4085d5
dec dword [eax + 0x374]
push ebx
call edi
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [esi + 0x1dd0]
jl 0x408542
mov ecx, dword [esi + 0x1dd8]
test ecx, ecx
je 0x40862b
mov eax, dword [0x445600]
mov dword [esi + 0x1dd4], 0
mov dword [esi + 0x1dd0], 0
test eax, eax
je 0x40861b
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dd8], 0
lea ecx, [esi + 0x2034]
call fcn.0041f820
mov ecx, dword [esi + 0x2058]
test ecx, ecx
je 0x408673
mov eax, dword [0x445600]
mov dword [esi + 0x2054], 0
mov dword [esi + 0x2050], 0
test eax, eax
je 0x408663
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2058], 0
mov ecx, dword [esi + 0x2064]
test ecx, ecx
je 0x4086b0
mov eax, dword [0x445600]
mov dword [esi + 0x2060], 0
mov dword [esi + 0x205c], 0
test eax, eax
je 0x4086a0
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2064], 0
lea ecx, [esi + 0x1ff0]
call fcn.0041f910
mov ecx, dword [esi + 0x2014]
test ecx, ecx
je 0x4086f8
mov eax, dword [0x445600]
mov dword [esi + 0x2010], 0
mov dword [esi + 0x200c], 0
test eax, eax
je 0x4086e8
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2014], 0
mov ecx, dword [esi + 0x202c]
test ecx, ecx
je 0x408735
mov eax, dword [0x445600]
mov dword [esi + 0x2028], 0
mov dword [esi + 0x2024], 0
test eax, eax
je 0x408725
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x202c], 0
mov ecx, dword [esi + 0x2f90]
test ecx, ecx
je 0x408772
mov eax, dword [0x445600]
mov dword [esi + 0x2f8c], 0
mov dword [esi + 0x2f88], 0
test eax, eax
je 0x408762
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2f90], 0
mov ecx, dword [esi + 0x2f9c]
test ecx, ecx
je 0x4087af
mov eax, dword [0x445600]
mov dword [esi + 0x2f98], 0
mov dword [esi + 0x2f94], 0
test eax, eax
je 0x40879f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2f9c], 0
mov ecx, dword [esi + 0x2084]
test ecx, ecx
je 0x4087ec
mov eax, dword [0x445600]
mov dword [esi + 0x2080], 0
mov dword [esi + 0x207c], 0
test eax, eax
je 0x4087dc
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2084], 0
mov ecx, dword [esi + 0x2090]
test ecx, ecx
je 0x408829
mov eax, dword [0x445600]
mov dword [esi + 0x208c], 0
mov dword [esi + 0x2088], 0
test eax, eax
je 0x408819
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2090], 0
mov ecx, dword [esi + 0x209c]
test ecx, ecx
je 0x408866
mov eax, dword [0x445600]
mov dword [esi + 0x2098], 0
mov dword [esi + 0x2094], 0
test eax, eax
je 0x408856
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x209c], 0
mov ecx, dword [esi + 0x3008]
test ecx, ecx
je 0x4088a3
mov eax, dword [0x445600]
mov dword [esi + 0x3004], 0
mov dword [esi + 0x3000], 0
test eax, eax
je 0x408893
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x3008], 0
mov ecx, dword [esi + 0x2ffc]
test ecx, ecx
je 0x4088e0
mov eax, dword [0x445600]
mov dword [esi + 0x2ff8], 0
mov dword [esi + 0x2ff4], 0
test eax, eax
je 0x4088d0
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2ffc], 0
cmp dword [esi + 0x3030], 0
je 0x408912
mov ebx, dword [esi + 0x3030]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp ebx, eax
je 0x408908
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 0x3030], 0
mov ecx, dword [esi + 0x303c]
test ecx, ecx
je 0x40894f
mov eax, dword [0x445600]
mov dword [esi + 0x3038], 0
mov dword [esi + 0x3034], 0
test eax, eax
je 0x40893f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x303c], 0
mov byte [esi], 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