Function at 0x4a4b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6a78
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4a4d97
test edi, edi
je 0x4a4d97
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
cmp eax, 0x500
jl 0x4a4d97
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
cmp eax, 0x2d0
jl 0x4a4d97
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CFile.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004960c0
test eax, eax
jne 0x4a4bd7
xor esi, esi
jmp 0x4a4d78
mov eax, 0x4d42
lea ecx, [ebp - 0x6c]
mov word [ebp - 0x3c], ax
call fcn.004cca40
lea ecx, [ebp - 0x7c]
lea esi, [eax + 4]
call fcn.004cca40
mov eax, dword [eax]
imul eax, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x32], 0x36
lea eax, [eax*4 + 0x36]
mov dword [ebp - 0x3a], eax
xor eax, eax
push eax
mov dword [ebp - 0x36], eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call esi
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x64], 0x28
push eax
push 0x28
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0x500
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x5c], 0x2d0
mov dword [ebp - 0x58], 0x180001
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x2a3000
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.0042d220
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x68], edi
call dword [eax + 0x34]
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
push 0x2cf
push 0
mov eax, dword [eax + 0x10]
call eax
mov esi, dword [ebp - 0x74]
mov edi, eax
mov ecx, esi
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
call edx
mov edx, dword [esi]
mov ecx, esi
add edi, eax
mov edx, dword [edx + 0x14]
call edx
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 2
neg eax
shl eax, 2
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], 0x2d0
lea eax, [edi + 2]
mov esi, 0x500
jmp 0x4a4d10
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [edx], cl
movzx ecx, byte [eax - 5]
mov byte [edx + 1], cl
movzx ecx, byte [eax - 4]
mov byte [edx + 2], cl
add edx, 3
dec esi
jne 0x4a4d10
add edi, dword [ebp - 0x78]
dec dword [ebp - 0x70]
jne 0x4a4d00
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
sub eax, edi
push esi
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x74]
mov esi, 1
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x38]
test edi, edi
je 0x4a4d78
push edi
call fcn.004d9d65
add esp, 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call dword [0x530444]
mov eax, esi
jmp 0x4a4d99
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret