Function at 0x409d2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
push 0
call fcn.00452990
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [0x4620e4]
push eax
call fcn.00437f47
add esp, 4
push 0x46bee8
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409de6
push 0x46beec
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409d98
push 0x46bef0
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409db2
push 0x46bef4
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409dcc
push 0x46bef8
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409de6
push 0x46befc
call fcn.00409bfe
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409e13
cmp dword [0x45e03c], 0
je 0x409e0e
mov eax, dword [ebp + 8]
push eax
push str._r_nUNABLE_TO_SAVE_UNLOCK___X_
call fcn.00452380
add esp, 8
jmp 0x40a054
mov dword [ebp - 0x134], 0x128
push 0
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [ebp - 0x12c]
xor eax, eax
mov ecx, 0x3e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x12c], 0x75
mov byte [ebp - 0x12b], 0x70
mov edi, 0x9854e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0xc8]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x2c]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [ebp - 0x12c]
xor eax, eax
mov ecx, 0x3e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x12c], 0x60
cmp dword [ebp + 0x14], 0
je 0x409ec9
mov byte [ebp - 0x12a], 2
jmp 0x409ed0
mov byte [ebp - 0x12a], 1
mov byte [ebp - 0x129], 0x50
lea eax, [ebp - 0x128]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
call fcn.00452eb0
add esp, 4
lea edi, [ebp - 0x28]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 4], al
mov eax, dword [ebp - 0x18]
inc eax
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 9], al
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xa], al
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xb], al
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xc], al
lea eax, [ebp - 4]
push eax
call fcn.00452eb0
add esp, 4
lea edi, [ebp - 0x28]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
inc eax
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xd], al
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xe], al
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xf], al
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0x10], al
xor eax, eax
sub eax, dword [ebp + 0xc]
neg eax
sub dword [ebp - 4], eax
mov eax, dword [ebp - 0x130]
mov byte [eax + 0x15], 0xff
mov eax, dword [ebp - 0x130]
mov byte [eax + 0x16], 0xff
mov eax, dword [ebp - 0x130]
mov ecx, dword [0x5dfaa0]
mov dword [eax + 0x17], ecx
mov eax, dword [ebp - 0x130]
mov byte [eax + 0x1b], 1
mov edi, 0x9854e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x130]
add edi, 0x1d
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x2c], ecx
mov edi, dword [ebp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x130]
add edi, 0x30
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x130]
mov byte [eax + 0x5f], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x60
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4620e4]
push eax
call fcn.00437f6e
add esp, 4
pop edi
pop esi
pop ebx
leave
ret