Function at 0x4080b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d660
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 0x40811a
cmp byte [esi + 1], 0
je 0x40811a
mov byte [eax + 0x10], 0
mov ebx, dword [esi + 0x98]
test ebx, ebx
je 0x40811a
mov ecx, ebx
call fcn.0042af20
mov eax, dword [0x445608]
test eax, eax
je 0x408114
dec dword [eax + 0x374]
push ebx
call edi
add esp, 4
cmp byte [esi], 0
mov dword [esi + 0x98], 0
je 0x408962
cmp byte [esi + 0x2fe0], 0
je 0x40819b
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x40819b
mov eax, dword [0x445608]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [0x445608], esi
mov dword [esi + 0x2fe4], 0
mov dword [ebp - 0x10], 0
call fcn.004155f0
mov edx, 0x43e4dc
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.00402f90
mov ebx, eax
test ebx, ebx
je 0x4081a3
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 0x4081a3
mov eax, dword [0x445608]
mov dword [ebp - 0x14], eax
mov dword [0x445608], esi
call fcn.00417850
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [0x445608], eax
cmp dword [esi + 0x2fb8], ebx
jle 0x4081f8
mov eax, dword [esi + 0x2fc0]
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4081ef
mov ecx, eax
call fcn.00418c20
mov eax, dword [0x445608]
test eax, eax
je 0x4081e7
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x2fb8]
jl 0x4081c0
xor ebx, ebx
cmp dword [esi + 0x3018], ebx
jle 0x40823a
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 0x40822b
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 0x408210
xor ebx, ebx
cmp dword [esi + 0x1c00], ebx
jle 0x40827b
mov eax, dword [esi + 0x1c08]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408272
mov ecx, eax
call fcn.004051a0
mov eax, dword [0x445608]
test eax, eax
je 0x40826a
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x1c00]
jl 0x408244
mov ecx, dword [esi + 0x1c08]
test ecx, ecx
je 0x4082b8
mov eax, dword [0x445608]
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c00], 0
test eax, eax
je 0x4082a8
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 0x4082f5
mov eax, dword [0x445608]
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c0c], 0
test eax, eax
je 0x4082e5
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 0x408332
mov eax, dword [0x445608]
mov dword [esi + 0x1c1c], 0
mov dword [esi + 0x1c18], 0
test eax, eax
je 0x408322
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 0x408379
mov eax, dword [0x445608]
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c24], 0
test eax, eax
je 0x408369
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 0x4083b6
mov eax, dword [0x445608]
mov dword [esi + 0x1c34], 0
mov dword [esi + 0x1c30], 0
test eax, eax
je 0x4083a6
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 0x40842f
mov eax, dword [0x445608]
mov dword [esi + 0x1d74], 0
mov dword [esi + 0x1d70], 0
test eax, eax
je 0x40841f
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 0x40846c
mov eax, dword [0x445608]
mov dword [esi + 0x1d80], 0
mov dword [esi + 0x1d7c], 0
test eax, eax
je 0x40845c
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 0x4084a9
mov eax, dword [0x445608]
mov dword [esi + 0x1d8c], 0
mov dword [esi + 0x1d88], 0
test eax, eax
je 0x408499
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 0x4084e6
mov eax, dword [0x445608]
mov dword [esi + 0x1dbc], 0
mov dword [esi + 0x1db8], 0
test eax, eax
je 0x4084d6
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 0x408523
mov eax, dword [0x445608]
mov dword [esi + 0x1dc8], 0
mov dword [esi + 0x1dc4], 0
test eax, eax
je 0x408513
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 0x4085fe
mov eax, dword [esi + 0x1dd8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x4085ee
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40858b
mov ecx, eax
call fcn.00401200
mov eax, dword [0x445608]
test eax, eax
je 0x408583
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 0x4085b3
mov ecx, eax
call fcn.00401200
mov eax, dword [0x445608]
test eax, eax
je 0x4085ab
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
push 0x41f610
push 2
push 0xc
lea eax, [ebx + 0xb0]
mov dword [ebp - 4], 0
push eax
call fcn.0043c599
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x445608]
test eax, eax
je 0x4085e5
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 0x408552
mov ecx, dword [esi + 0x1dd8]
test ecx, ecx
je 0x40863b
mov eax, dword [0x445608]
mov dword [esi + 0x1dd4], 0
mov dword [esi + 0x1dd0], 0
test eax, eax
je 0x40862b
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dd8], 0
lea ecx, [esi + 0x2034]
call fcn.0041f830
mov ecx, dword [esi + 0x2058]
test ecx, ecx
je 0x408683
mov eax, dword [0x445608]
mov dword [esi + 0x2054], 0
mov dword [esi + 0x2050], 0
test eax, eax
je 0x408673
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 0x4086c0
mov eax, dword [0x445608]
mov dword [esi + 0x2060], 0
mov dword [esi + 0x205c], 0
test eax, eax
je 0x4086b0
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2064], 0
lea ecx, [esi + 0x1ff0]
call fcn.0041f920
mov ecx, dword [esi + 0x2014]
test ecx, ecx
je 0x408708
mov eax, dword [0x445608]
mov dword [esi + 0x2010], 0
mov dword [esi + 0x200c], 0
test eax, eax
je 0x4086f8
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 0x408745
mov eax, dword [0x445608]
mov dword [esi + 0x2028], 0
mov dword [esi + 0x2024], 0
test eax, eax
je 0x408735
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 0x408782
mov eax, dword [0x445608]
mov dword [esi + 0x2f8c], 0
mov dword [esi + 0x2f88], 0
test eax, eax
je 0x408772
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 0x4087bf
mov eax, dword [0x445608]
mov dword [esi + 0x2f98], 0
mov dword [esi + 0x2f94], 0
test eax, eax
je 0x4087af
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 0x4087fc
mov eax, dword [0x445608]
mov dword [esi + 0x2080], 0
mov dword [esi + 0x207c], 0
test eax, eax
je 0x4087ec
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 0x408839
mov eax, dword [0x445608]
mov dword [esi + 0x208c], 0
mov dword [esi + 0x2088], 0
test eax, eax
je 0x408829
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 0x408876
mov eax, dword [0x445608]
mov dword [esi + 0x2098], 0
mov dword [esi + 0x2094], 0
test eax, eax
je 0x408866
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 0x4088b3
mov eax, dword [0x445608]
mov dword [esi + 0x3004], 0
mov dword [esi + 0x3000], 0
test eax, eax
je 0x4088a3
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 0x4088f0
mov eax, dword [0x445608]
mov dword [esi + 0x2ff8], 0
mov dword [esi + 0x2ff4], 0
test eax, eax
je 0x4088e0
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2ffc], 0
cmp dword [esi + 0x3030], 0
je 0x408922
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 0x408918
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 0x40895f
mov eax, dword [0x445608]
mov dword [esi + 0x3038], 0
mov dword [esi + 0x3034], 0
test eax, eax
je 0x40894f
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