Function at 0x421f9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7eba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], 9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.0045b410
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x84], edi
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x64
call fcn.00585ff1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
jmp 0x42206f
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0xf
jge 0x42209a
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x422098
jmp 0x42209a
jmp 0x422066
cmp dword [ebp - 0x20], 0xf
jne 0x4220f7
cmp dword [ebp - 0x18], 0
jg 0x4220f7
push 0x30
push str.___b
push 0x60bc54
mov eax, dword [ebp - 0x4c]
add eax, 0x64
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00585e56
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.00401260
push eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x623418]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00585bc1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [eax + 0x80]
add esi, ecx
mov eax, dword [eax + 0x84]
adc eax, edx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x84], eax
mov ecx, dword [ebp - 0x4c]
call fcn.00422569
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov al, byte [edx + 0x60]
test eax, eax
je 0x422149
mov ecx, dword [ebp - 0x4c]
call fcn.0042253a
jmp 0x42220c
mov byte [ebp - 0x44], 7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov al, byte [edx + 0x61]
test eax, eax
je 0x422193
push 0x64
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x67c]
call fcn.00425ad0
push str.KKWd_c
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x67c]
call fcn.0058517d
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x61], 0
mov dword [ebp - 0x24], 0xffffffff
push 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x43]
push edx
call fcn.00459fb0
add esp, 0xc
push 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3f]
push ecx
call fcn.00459fb0
add esp, 0xc
push 9
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x670]
push ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x674]
call fcn.0042aab2
lea ecx, [ebp - 0x38]
call fcn.00401240
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x60bc6c
lea edx, [ebp - 0x38]
push edx
call fcn.0057e262
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00585bc1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8