Function at 0x4085f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474530
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49400c]
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 0x408748
cmp byte [esi + 1], 0
je 0x408748
mov byte [eax + 0x10], 0
mov ebx, dword [esi + 0x98]
test ebx, ebx
je 0x408748
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0042b820
mov ecx, ebx
call fcn.0042b940
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 0x34], ecx
jle 0x4086a7
nop dword [eax]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40869e
mov ecx, eax
call fcn.0042e120
mov eax, dword [0x495280]
test eax, eax
je 0x408693
dec dword [eax + 0x374]
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebx + 0x34]
jl 0x408670
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x4086d8
mov eax, dword [0x495280]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
test eax, eax
je 0x4086cb
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [ebx + 0x3c], 0
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x4086f4
mov eax, dword [0x495280]
test eax, eax
je 0x4086ee
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x408710
mov eax, dword [0x495280]
test eax, eax
je 0x40870a
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x40872c
mov eax, dword [0x495280]
test eax, eax
je 0x408726
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x495280]
test eax, eax
je 0x408742
dec dword [eax + 0x374]
push ebx
call edi
add esp, 4
cmp byte [esi], 0
mov dword [esi + 0x98], 0
je 0x408f96
cmp byte [esi + 0x2fe0], 0
je 0x4087c9
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x4087c9
mov eax, dword [0x495280]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [0x495280], esi
mov dword [esi + 0x2fe4], 0
mov dword [ebp - 0x10], 0
call fcn.004162c0
mov edx, 0x47991c
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.004038b0
mov ebx, eax
test ebx, ebx
je 0x4087d1
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 0x4087d1
mov eax, dword [0x495280]
mov dword [ebp - 0x14], eax
mov dword [0x495280], esi
call fcn.00418530
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [0x495280], eax
cmp dword [esi + 0x2fb8], ebx
jle 0x408828
nop
mov eax, dword [esi + 0x2fc0]
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40881f
mov ecx, eax
call fcn.00419760
mov eax, dword [0x495280]
test eax, eax
je 0x408817
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x2fb8]
jl 0x4087f0
xor ebx, ebx
cmp dword [esi + 0x3018], ebx
jle 0x40886a
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov edx, dword [esi + 0x3020]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x40885b
mov eax, dword [edx + 0xc]
push edx
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 0x408840
xor ebx, ebx
cmp dword [esi + 0x1c00], ebx
jle 0x4088ab
mov eax, dword [esi + 0x1c08]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4088a2
mov ecx, eax
call fcn.00405640
mov eax, dword [0x495280]
test eax, eax
je 0x40889a
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x1c00]
jl 0x408874
mov ecx, dword [esi + 0x1c08]
test ecx, ecx
je 0x4088e8
mov eax, dword [0x495280]
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c00], 0
test eax, eax
je 0x4088d8
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 0x408925
mov eax, dword [0x495280]
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c0c], 0
test eax, eax
je 0x408915
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 0x408962
mov eax, dword [0x495280]
mov dword [esi + 0x1c1c], 0
mov dword [esi + 0x1c18], 0
test eax, eax
je 0x408952
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 0x4089a9
mov eax, dword [0x495280]
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c24], 0
test eax, eax
je 0x408999
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 0x4089e6
mov eax, dword [0x495280]
mov dword [esi + 0x1c34], 0
mov dword [esi + 0x1c30], 0
test eax, eax
je 0x4089d6
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 0x408a5f
mov eax, dword [0x495280]
mov dword [esi + 0x1d74], 0
mov dword [esi + 0x1d70], 0
test eax, eax
je 0x408a4f
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 0x408a9c
mov eax, dword [0x495280]
mov dword [esi + 0x1d80], 0
mov dword [esi + 0x1d7c], 0
test eax, eax
je 0x408a8c
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 0x408ad9
mov eax, dword [0x495280]
mov dword [esi + 0x1d8c], 0
mov dword [esi + 0x1d88], 0
test eax, eax
je 0x408ac9
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 0x408b16
mov eax, dword [0x495280]
mov dword [esi + 0x1dbc], 0
mov dword [esi + 0x1db8], 0
test eax, eax
je 0x408b06
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 0x408b53
mov eax, dword [0x495280]
mov dword [esi + 0x1dc8], 0
mov dword [esi + 0x1dc4], 0
test eax, eax
je 0x408b43
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 0x408c32
mov eax, dword [esi + 0x1dd8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x408c22
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408bc2
mov ecx, eax
call fcn.004019d0
mov eax, dword [0x495280]
test eax, eax
je 0x408bba
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 0x408bea
mov ecx, eax
call fcn.004019d0
mov eax, dword [0x495280]
test eax, eax
je 0x408be2
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
push 0x41fe50
push 2
push 0xc
lea eax, [ebx + 0xb0]
mov byte [ebp - 4], 5
push eax
call fcn.00473078
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x495280]
test eax, eax
je 0x408c19
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 0x408b82
mov ecx, dword [esi + 0x1dd8]
test ecx, ecx
je 0x408c6f
mov eax, dword [0x495280]
mov dword [esi + 0x1dd4], 0
mov dword [esi + 0x1dd0], 0
test eax, eax
je 0x408c5f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dd8], 0
lea ecx, [esi + 0x2034]
call fcn.004201a0
mov ecx, dword [esi + 0x2058]
test ecx, ecx
je 0x408cb7
mov eax, dword [0x495280]
mov dword [esi + 0x2054], 0
mov dword [esi + 0x2050], 0
test eax, eax
je 0x408ca7
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 0x408cf4
mov eax, dword [0x495280]
mov dword [esi + 0x2060], 0
mov dword [esi + 0x205c], 0
test eax, eax
je 0x408ce4
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2064], 0
lea ecx, [esi + 0x1ff0]
call fcn.00420340
mov ecx, dword [esi + 0x2014]
test ecx, ecx
je 0x408d3c
mov eax, dword [0x495280]
mov dword [esi + 0x2010], 0
mov dword [esi + 0x200c], 0
test eax, eax
je 0x408d2c
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 0x408d79
mov eax, dword [0x495280]
mov dword [esi + 0x2028], 0
mov dword [esi + 0x2024], 0
test eax, eax
je 0x408d69
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 0x408db6
mov eax, dword [0x495280]
mov dword [esi + 0x2f8c], 0
mov dword [esi + 0x2f88], 0
test eax, eax
je 0x408da6
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 0x408df3
mov eax, dword [0x495280]
mov dword [esi + 0x2f98], 0
mov dword [esi + 0x2f94], 0
test eax, eax
je 0x408de3
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 0x408e30
mov eax, dword [0x495280]
mov dword [esi + 0x2080], 0
mov dword [esi + 0x207c], 0
test eax, eax
je 0x408e20
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 0x408e6d
mov eax, dword [0x495280]
mov dword [esi + 0x208c], 0
mov dword [esi + 0x2088], 0
test eax, eax
je 0x408e5d
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 0x408eaa
mov eax, dword [0x495280]
mov dword [esi + 0x2098], 0
mov dword [esi + 0x2094], 0
test eax, eax
je 0x408e9a
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 0x408ee7
mov eax, dword [0x495280]
mov dword [esi + 0x3004], 0
mov dword [esi + 0x3000], 0
test eax, eax
je 0x408ed7
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 0x408f24
mov eax, dword [0x495280]
mov dword [esi + 0x2ff8], 0
mov dword [esi + 0x2ff4], 0
test eax, eax
je 0x408f14
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2ffc], 0
cmp dword [esi + 0x3030], 0
je 0x408f56
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 0x408f4c
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 0x408f93
mov eax, dword [0x495280]
mov dword [esi + 0x3038], 0
mov dword [esi + 0x3034], 0
test eax, eax
je 0x408f83
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