Function at 0x414820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
add ecx, 0xa
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x414851
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0xc2c]
jae 0x41487d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x41487d
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add edx, 0x4d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
jmp 0x414848
mov dword [ebp - 8], 0
jmp 0x41488f
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0xc2c]
jae 0x4148c8
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x4148c8
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x28]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add eax, edx
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x14]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
jmp 0x414886
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc2c]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc2c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x4149b6
mov dword [ebp - 0xc], 0x400
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc28]
jbe 0x41490b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc28]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1480]
cmp eax, dword [ebp - 0xc]
jae 0x4149b6
mov dword [ebp - 0x10], 0
jmp 0x414944
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1480]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1480], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1480], 0x400
jae 0x414978
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x414978
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1480]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov al, byte [eax]
mov byte [ecx + edx + 0x1080], al
jmp 0x414926
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1480]
cmp edx, dword [ebp - 0xc]
jne 0x4149b6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1480]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1080
push ecx
mov edx, dword [ebp + 8]
add edx, 0x428
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0x10
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc34], 0xffffffff
je 0x414a57
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4149f0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
je 0x414a07
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x414a07
push 5
call fcn.0042a330
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc2c], 0
jne 0x414a57
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1c
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc34]
push eax
call fcn.00427810
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc34], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret