Function at 0x408ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4349d2
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.00434530
mov eax, dword [0x52a310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x52bf84]
xor ebx, ebx
mov dword [ebp - 0x1020], ebx
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1024], eax
test eax, eax
jle 0x408d32
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0040daa0
mov eax, dword [esi + 0x24]
add esp, 8
mov esi, dword [eax + ebx*4]
lea eax, [ebp - 0x1010]
push eax
push dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
call fcn.004089e0
test al, al
je 0x408d18
mov eax, dword [0x52bf84]
mov ebx, dword [esi + 0x10]
push 0x10
mov dword [ebp - 0x101c], ebx
mov edi, dword [eax + 0x30]
add edi, dword [eax + 0x14]
add edi, dword [ebx + 4]
call fcn.0040af70
mov esi, eax
add esp, 4
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1018], esi
mov dword [esi], vtable.MemoryStream.0
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp byte [ebx + 0x11], 0
je 0x408bd3
push 0x80
call fcn.0040af70
add esp, 4
mov dword [ebp - 0x1018], eax
mov ecx, eax
push 0x40
push 0x52aac0
push esi
call fcn.0040ade0
mov esi, eax
cmp byte [ebx + 0x10], 0
je 0x408c3e
push 0x20048
call fcn.0040af70
mov ecx, dword [ebx + 0xc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x1018], edi
lea eax, [edi + 8]
mov dword [eax], 0
mov dword [edi], vtable.ZlibStream.0
push 0x38
push 0x446334
push eax
mov dword [edi + 4], esi
mov dword [edi + 0x20044], ecx
mov dword [edi + 0x20040], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0xc], 0
call fcn.00401320
mov esi, edi
push 0x10
call fcn.0040af70
mov ebx, eax
mov dword [ebp - 0x1028], ebx
mov edi, dword [ebp - 0x101c]
mov dword [ebp - 4], 0
push 8
mov edi, dword [edi + 0xc]
mov dword [ebx], vtable.ResourceStream.0
mov dword [ebx + 8], 0
call fcn.0040af70
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1018], eax
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x101c]
mov dword [eax], vtable.Reader.0
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], edi
push dword [esi + 0xc]
call fcn.0040afe0
add esp, 0xc
mov dword [ebp - 0x1014], 0
mov ecx, dword [ebx]
mov edi, eax
lea eax, [ebp - 0x1014]
push eax
push dword [esi + 0xc]
push edi
push ebx
call dword [ecx + 0xc]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [esi + 0xc]
jne 0x408d07
push 0
push 0
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x1010]
push eax
call fcn.00406110
push 0
mov esi, eax
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x1014]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push edi
call fcn.0040afc0
mov ebx, dword [ebp - 0x1020]
add esp, 8
inc ebx
mov dword [ebp - 0x1020], ebx
cmp ebx, dword [ebp - 0x1024]
jge 0x408d32
mov esi, dword [0x52bf84]
jmp 0x408b31
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af50
mov esp, ebp
pop ebp
ret