Function at 0x408ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x509040]
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 0x408b84
cmp byte [esi + 1], 0
je 0x408b84
mov byte [eax + 0x10], 0
mov ebx, dword [esi + 0x98]
test ebx, ebx
je 0x408b84
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0042ce40
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x408b30
mov eax, dword [0x5887f0]
test eax, eax
je 0x408b2a
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x408b4c
mov eax, dword [0x5887f0]
test eax, eax
je 0x408b46
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x408b68
mov eax, dword [0x5887f0]
test eax, eax
je 0x408b62
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5887f0]
test eax, eax
je 0x408b7e
dec dword [eax + 0x374]
push ebx
call edi
add esp, 4
cmp byte [esi], 0
mov dword [esi + 0x98], 0
je 0x4093d6
cmp byte [esi + 0x2fe0], 0
je 0x408c05
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x408c05
mov eax, dword [0x5887f0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [0x5887f0], esi
mov dword [esi + 0x2fe4], 0
mov dword [ebp - 0x10], 0
call fcn.00416b20
mov edx, 0x4ee94c
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.00403a70
mov ebx, eax
test ebx, ebx
je 0x408c0d
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 0x408c0d
mov eax, dword [0x5887f0]
mov dword [ebp - 0x14], eax
mov dword [0x5887f0], esi
call fcn.00418da0
mov eax, dword [ebp - 0x14]
xor ebx, ebx
mov dword [0x5887f0], eax
cmp dword [esi + 0x2fb8], ebx
jle 0x408c68
nop word [eax + eax]
mov eax, dword [esi + 0x2fc0]
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408c5f
mov ecx, eax
call fcn.0041a060
mov eax, dword [0x5887f0]
test eax, eax
je 0x408c57
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x2fb8]
jl 0x408c30
xor ebx, ebx
cmp dword [esi + 0x3018], ebx
jle 0x408caa
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 0x408c9b
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 0x408c80
xor ebx, ebx
cmp dword [esi + 0x1c00], ebx
jle 0x408ceb
mov eax, dword [esi + 0x1c08]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408ce2
mov ecx, eax
call fcn.00405b20
mov eax, dword [0x5887f0]
test eax, eax
je 0x408cda
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x1c00]
jl 0x408cb4
mov ecx, dword [esi + 0x1c08]
test ecx, ecx
je 0x408d28
mov eax, dword [0x5887f0]
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c00], 0
test eax, eax
je 0x408d18
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 0x408d65
mov eax, dword [0x5887f0]
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c0c], 0
test eax, eax
je 0x408d55
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 0x408da2
mov eax, dword [0x5887f0]
mov dword [esi + 0x1c1c], 0
mov dword [esi + 0x1c18], 0
test eax, eax
je 0x408d92
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 0x408de9
mov eax, dword [0x5887f0]
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c24], 0
test eax, eax
je 0x408dd9
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 0x408e26
mov eax, dword [0x5887f0]
mov dword [esi + 0x1c34], 0
mov dword [esi + 0x1c30], 0
test eax, eax
je 0x408e16
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 0x408e9f
mov eax, dword [0x5887f0]
mov dword [esi + 0x1d74], 0
mov dword [esi + 0x1d70], 0
test eax, eax
je 0x408e8f
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 0x408edc
mov eax, dword [0x5887f0]
mov dword [esi + 0x1d80], 0
mov dword [esi + 0x1d7c], 0
test eax, eax
je 0x408ecc
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 0x408f19
mov eax, dword [0x5887f0]
mov dword [esi + 0x1d8c], 0
mov dword [esi + 0x1d88], 0
test eax, eax
je 0x408f09
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 0x408f56
mov eax, dword [0x5887f0]
mov dword [esi + 0x1dbc], 0
mov dword [esi + 0x1db8], 0
test eax, eax
je 0x408f46
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 0x408f93
mov eax, dword [0x5887f0]
mov dword [esi + 0x1dc8], 0
mov dword [esi + 0x1dc4], 0
test eax, eax
je 0x408f83
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 0x409072
mov eax, dword [esi + 0x1dd8]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x409062
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409002
mov ecx, eax
call fcn.00401b00
mov eax, dword [0x5887f0]
test eax, eax
je 0x408ffa
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 0x40902a
mov ecx, eax
call fcn.00401b00
mov eax, dword [0x5887f0]
test eax, eax
je 0x409022
dec dword [eax + 0x374]
push dword [ebp - 0x18]
call edi
add esp, 4
push 0x4207e0
push 2
push 0xc
lea eax, [ebx + 0xb0]
mov byte [ebp - 4], 5
push eax
call fcn.004871bc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5887f0]
test eax, eax
je 0x409059
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 0x408fc2
mov ecx, dword [esi + 0x1dd8]
test ecx, ecx
je 0x4090af
mov eax, dword [0x5887f0]
mov dword [esi + 0x1dd4], 0
mov dword [esi + 0x1dd0], 0
test eax, eax
je 0x40909f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dd8], 0
lea ecx, [esi + 0x2034]
call fcn.00420b30
mov ecx, dword [esi + 0x2058]
test ecx, ecx
je 0x4090f7
mov eax, dword [0x5887f0]
mov dword [esi + 0x2054], 0
mov dword [esi + 0x2050], 0
test eax, eax
je 0x4090e7
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 0x409134
mov eax, dword [0x5887f0]
mov dword [esi + 0x2060], 0
mov dword [esi + 0x205c], 0
test eax, eax
je 0x409124
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2064], 0
lea ecx, [esi + 0x1ff0]
call fcn.00420ce0
mov ecx, dword [esi + 0x2014]
test ecx, ecx
je 0x40917c
mov eax, dword [0x5887f0]
mov dword [esi + 0x2010], 0
mov dword [esi + 0x200c], 0
test eax, eax
je 0x40916c
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 0x4091b9
mov eax, dword [0x5887f0]
mov dword [esi + 0x2028], 0
mov dword [esi + 0x2024], 0
test eax, eax
je 0x4091a9
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 0x4091f6
mov eax, dword [0x5887f0]
mov dword [esi + 0x2f8c], 0
mov dword [esi + 0x2f88], 0
test eax, eax
je 0x4091e6
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 0x409233
mov eax, dword [0x5887f0]
mov dword [esi + 0x2f98], 0
mov dword [esi + 0x2f94], 0
test eax, eax
je 0x409223
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 0x409270
mov eax, dword [0x5887f0]
mov dword [esi + 0x2080], 0
mov dword [esi + 0x207c], 0
test eax, eax
je 0x409260
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 0x4092ad
mov eax, dword [0x5887f0]
mov dword [esi + 0x208c], 0
mov dword [esi + 0x2088], 0
test eax, eax
je 0x40929d
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 0x4092ea
mov eax, dword [0x5887f0]
mov dword [esi + 0x2098], 0
mov dword [esi + 0x2094], 0
test eax, eax
je 0x4092da
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 0x409327
mov eax, dword [0x5887f0]
mov dword [esi + 0x3004], 0
mov dword [esi + 0x3000], 0
test eax, eax
je 0x409317
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 0x409364
mov eax, dword [0x5887f0]
mov dword [esi + 0x2ff8], 0
mov dword [esi + 0x2ff4], 0
test eax, eax
je 0x409354
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2ffc], 0
cmp dword [esi + 0x3030], 0
je 0x409396
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 0x40938c
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 0x4093d3
mov eax, dword [0x5887f0]
mov dword [esi + 0x3038], 0
mov dword [esi + 0x3034], 0
test eax, eax
je 0x4093c3
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