Function at 0x4ade20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7308
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x50]
call fcn.004cc3e0
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x4adec3
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x28]
push 0x531d34
push eax
call fcn.004b74c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, 0x58dba0
push 0
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x58dba0]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
jb 0x4ae035
push dword [ebp - 0x28]
call fcn.004d9d65
add esp, 4
jmp 0x4ae035
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], vtable.CFile.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x38]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.004960c0
test eax, eax
jne 0x4adff6
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
cmovae eax, dword [ebp - 0x50]
push eax
push 0x529bb0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004c6540
add esp, 0x10
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
mov byte [eax], 0
cmp dword [ebp - 0x6c], 0x10
jb 0x4adf5f
push dword [ebp - 0x80]
call fcn.004d9d65
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 4]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004b74c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
mov ecx, 0x58dba0
push 0
cmovae eax, dword [ebp - 0x68]
push eax
mov eax, dword [0x58dba0]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], 0
cmovae eax, dword [ebp - 0x68]
mov byte [eax], 0
cmp dword [ebp - 0x54], 0x10
jb 0x4adfbc
push dword [ebp - 0x68]
call fcn.004d9d65
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], 0xf
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x18], 0
mov byte [eax], 0
cmp dword [ebp - 0x14], 0x10
jb 0x4ae01d
push dword [ebp - 0x28]
call fcn.004d9d65
add esp, 4
jmp 0x4ae01d
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x30]
push 0
push edx
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
push ecx
push dword [eax]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call dword [eax + 0xc]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.CFile.0
call dword [0x530444]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], 0
cmovae eax, dword [ebp - 0x50]
mov byte [eax], 0
cmp dword [ebp - 0x3c], 0x10
jb 0x4ae05b
push dword [ebp - 0x50]
call fcn.004d9d65
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret