Function at 0x4ee980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5edd59
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], al
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.004e9e30
mov byte [ebp - 0x14d], al
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004e84c0
add esp, 0x10
mov byte [ebp - 0x14e], al
cmp byte [ebp - 0x14d], 0
je 0x4eed36
push 1
push 2
lea ecx, [ebp - 0x1ec]
call fcn.004ebff0
mov byte [ebp - 4], 3
xor esi, esi
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1d8]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea eax, [ebp - 0x1fc]
push eax
call fcn.004f4ed2
mov ecx, dword [ebp - 0x1ec]
lea edx, [ebp - 0x1ec]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x1ac], 0x30
movzx eax, byte [ebp + esi - 0x18]
push eax
call fcn.004ed1d0
inc esi
cmp esi, 6
jb 0x4eea50
mov ecx, dword [ebp - 0x1ac]
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x154], 4
test cl, 2
jne 0x4eeb16
mov eax, dword [ebp - 0x1c8]
mov edx, dword [eax]
test edx, edx
je 0x4eeb16
mov eax, dword [ebp - 0x1d8]
cmp edx, dword [ebp - 0x1b0]
cmovb edx, dword [ebp - 0x1b0]
mov ecx, dword [eax]
sub edx, ecx
jmp 0x4eeb39
test cl, 4
jne 0x4eeb43
mov eax, dword [ebp - 0x1cc]
mov edx, dword [eax]
test edx, edx
je 0x4eeb43
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax]
sub edx, ecx
mov eax, dword [ebp - 0x1bc]
add edx, dword [eax]
push edx
push ecx
lea ecx, [ebp - 0x30]
call fcn.004b5bb0
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 3
call fcn.004ed470
cmp byte [ebp - 0x14e], 0
mov byte [ebp - 4], 5
je 0x4eec8d
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xf0]
push 0x606440
push eax
call fcn.004ebb10
add esp, 0xc
push 0
push 0x606440
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004f04c0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004ebab0
add esp, 0xc
push 0
push 0x606440
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004f04c0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004ebab0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 0xa
jb 0x4eec4c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004f04c0
lea ecx, [ebp - 0xc0]
call fcn.004b3140
lea ecx, [ebp - 0x60]
call fcn.004b3140
lea ecx, [ebp - 0xd8]
call fcn.004b3140
lea ecx, [ebp - 0x48]
call fcn.004b3140
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call fcn.004b3140
lea eax, [ebp - 0x14c]
push eax
call fcn.004eafa0
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004eaff0
lea eax, [ebp - 0x14c]
push eax
push edi
call fcn.004eae50
mov edx, dword [ebp - 0x1c]
add esp, 0x18
cmp edx, 0x10
jb 0x4eecf8
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4eecee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eef26
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov byte [ebp - 0x14d], 1
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x4eee6f
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4eee65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eef2b
jmp 0x4eee65
push edi
mov ecx, esi
call fcn.004ee380
test al, al
jne 0x4eecf8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x10
call fcn.0050ed1e
mov esi, eax
add esp, 4
test esi, esi
je 0x4eee53
push esi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4eee53
movups xmm0, xmmword [esi]
push 0x10
push esi
movups xmmword [edi], xmm0
call fcn.0050ed4e
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004ee200
add esp, 8
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0
push 2
push 0
push 1
push 0x40000000
push eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4eedfc
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004ee200
add esp, 8
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
cmovae eax, dword [ebp - 0x60]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00449860
cmp esi, 0xffffffff
je 0x4eee16
push 0
lea eax, [ebp - 0x154]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4eecf8
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4eecee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eef30
jmp 0x4eecee
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x14d], 0
jmp 0x4eecff
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x4eeeb8
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4eeeae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eef35
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp edx, 0x10
jb 0x4eef03
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4eeef9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eef3a
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov al, byte [ebp - 0x14d]
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.0050ed5c
mov esp, ebp
pop ebp
ret 4
call fcn.005978c6
call fcn.005978c6
call fcn.005978c6
call fcn.005978c6
call fcn.005978c6
int3