Function at 0x420510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov edi, dword [ecx + 0x19a8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov eax, dword [edi + 8]
push 0x130b
push dword [eax + 4]
call esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 8
push ecx
push eax
mov eax, dword [edi + 8]
xorps xmm0, xmm0
push 0x133c
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
push dword [eax + 4]
movlpd qword [ebp - 0x44], xmm0
call esi
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ecx + 0xd68]
call fcn.00462e60
mov al, byte [ebp - 0x38]
lea ecx, [ebp - 0x20]
sub al, byte [ebp - 0x3c]
mov byte [ebp - 0x59], al
lea eax, [ebp - 0x59]
push eax
push 0
call fcn.004211c0
mov cl, byte [ebp - 0x2c]
sub cl, byte [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x59], cl
cmp dword [ebp - 0x18], eax
je 0x420643
mov byte [eax], cl
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x420653
lea ecx, [ebp - 0x59]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.004211c0
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x38]
push edi
push eax
call fcn.00421290
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
call fcn.00421290
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
je 0x4206bd
push 0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4206d0
push dword [ebp - 0x60]
push str.Unable_to_create_file__s
push dword [ebp - 0x24]
call fcn.00443470
add esp, 0xc
test ebx, ebx
je 0x420701
mov ecx, dword [ebp - 0x28]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4206f7
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420779
push ecx
push ebx
call fcn.0047ea92
add esp, 8
test edi, edi
je 0x42072e
mov ecx, dword [ebp - 0x34]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x420724
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42077e
push ecx
push edi
call fcn.0047ea92
add esp, 8
test esi, esi
je 0x42075b
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x420751
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420783
push ecx
push esi
call fcn.0047ea92
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047e577
mov esp, ebp
pop ebp
ret 4
call fcn.004821b3
call fcn.004821b3
call fcn.004821b3
int3