Function at 0x402d50
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 0x402d81
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 0x402dad
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x402dad
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 0x402d78
mov dword [ebp - 8], 0
jmp 0x402dbf
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 0x402df8
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x402df8
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 0x402db6
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 0x402ee6
mov dword [ebp - 0xc], 0x400
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc28]
jbe 0x402e3b
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 0x402ee6
mov dword [ebp - 0x10], 0
jmp 0x402e74
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 0x402ea8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x402ea8
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 0x402e56
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1480]
cmp edx, dword [ebp - 0xc]
jne 0x402ee6
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 0x402f87
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 0x402f20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
je 0x402f37
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x402f37
push 5
call fcn.004021d0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc2c], 0
jne 0x402f87
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.004015e0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc34], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret