Function at 0x402b81
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 - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x402bb2
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 + 0x82c]
jae 0x402bdd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x402bdd
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
add dl, 0x4d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
jmp 0x402ba9
mov dword [ebp - 8], 0
jmp 0x402bef
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 + 0x82c]
jae 0x402c2d
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x402c2d
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x28]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx]
add ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
jmp 0x402be6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x82c]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x82c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x402d18
mov dword [ebp - 0x10], 0x400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x828]
jbe 0x402c70
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x828]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1080]
cmp edx, dword [ebp - 0x10]
jae 0x402d18
mov dword [ebp - 0xc], 0
jmp 0x402ca9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1080]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1080], 0x400
jae 0x402cdd
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
jae 0x402cdd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1080]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [edx]
mov byte [eax + ecx + 0xc80], dl
jmp 0x402c8b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1080]
cmp ecx, dword [ebp - 0x10]
jne 0x402d18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1080]
push edx
mov eax, dword [ebp + 8]
add eax, 0xc80
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x428
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0xc]
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x834], 0xffffffff
je 0x402db9
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d52
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x402d69
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x402d69
push 5
call fcn.00402024
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x82c], 0
jne 0x402db9
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]
add eax, 0x1c
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x834]
push ecx
call fcn.0040156a
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x834], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret