Function at 0x407ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c80d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d7200]
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 edi, ecx
mov dword [ebp - 0x28], edi
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x407f0a
test ecx, ecx
je 0x407f0a
cmp esi, 1
jge 0x407d50
test ebx, ebx
je 0x407f0a
xor esi, esi
cmp word [ebx], si
je 0x407d48
nop dword [eax]
inc esi
cmp word [ebx + esi*2], 0
jne 0x407d40
test esi, esi
je 0x407f0a
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], 0
test al, 0x20
je 0x407d80
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + esi]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407f0a
mov eax, dword [ebp - 0x14]
jmp 0x407f0c
test al, 0x40
je 0x407e40
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x18], 1
xor ecx, ecx
mov dword [ebp - 4], 0
lea eax, [esi + 1]
mov dword [ebp - 0x1c], 0
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a02b
xor edx, edx
mov dword [ebp - 0x24], eax
lea ecx, [esi + esi]
add esp, 4
mov dword [ebp - 0x28], ecx
mov word [ecx + eax], dx
mov word [eax], dx
test esi, esi
jle 0x407e17
mov edx, eax
sub ebx, eax
nop word [eax + eax]
movzx ecx, byte [edx + ebx + 1]
lea edx, [edx + 2]
mov word [edx - 2], cx
mov ax, word [edx + ebx - 2]
shl ax, 8
or ax, cx
mov word [edx - 2], ax
sub esi, 1
jne 0x407df0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push 0
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x24]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x14]
call fcn.00489c73
add esp, 4
mov eax, esi
jmp 0x407f0c
test eax, 0x188
je 0x407ec6
push 0
push 0
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x407f0a
push eax
call fcn.0048a02b
add esp, 4
mov dword [ebp - 0x24], eax
push 0
push 0
push dword [ebp - 0x28]
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x407eb7
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407eb7
mov edi, dword [ebp - 0x14]
push esi
call fcn.00489c73
add esp, 4
mov eax, edi
jmp 0x407f0c
push esi
xor edi, edi
call fcn.00489c73
add esp, 4
mov eax, edi
jmp 0x407f0c
push esi
call fcn.0048a02b
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x28]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
push edi
sbb esi, esi
and esi, dword [ebp - 0x14]
call fcn.00489c73
add esp, 4
mov eax, esi
jmp 0x407f0c
xor eax, eax
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.00489c65
mov esp, ebp
pop ebp
ret 8