Function at 0x4093e0
Capabilities:
Get common file path
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x424]
push edi
push eax
lea eax, [ebp - 0x434]
mov edi, edx
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x430]
call fcn.00408960
add esp, 0xc
test eax, eax
jne 0x409434
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004130f0
add esp, 0xc
lea eax, [ebp - 0x41c]
test esi, esi
jne 0x409462
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x409471
push 0x104
push esi
push eax
call fcn.00418007
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0
push 0x43e1fc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push str.___Created_dummy_file:
push 0x444590
call fcn.00404fc0
lea edx, [ebp - 0x214]
call fcn.0040c240
push eax
call fcn.0040c500
mov esi, dword [ebp - 0x42c]
lea ecx, [ebp - 0x214]
add esp, 0xc
mov edx, esi
push dword [ebp - 0x424]
test edi, edi
jne 0x4094ce
call fcn.00402930
jmp 0x4094df
cmp edi, 1
jne 0x4094da
call fcn.0040cd30
jmp 0x4094df
call fcn.00402b40
add esp, 4
test eax, eax
je 0x409663
cmp eax, 0xffffffff
je 0x409663
push 2
push 0
push 1
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push ecx
push 0xffffffffffffffff
push eax
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
je 0x40954a
cmp edi, 0x40000003
jne 0x409566
push str._WARNING__Image_could_not_be_mapped_at_its_original_base__If_the_payload_has_no_relocations__it_wont_work__n
push 0x444678
call fcn.00404fc0
add esp, 8
push str.___Mapped_Base:
push 0x444590
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x4095bc
xor ecx, ecx
jmp 0x4095c3
push str._ERROR__NtMapViewOfSection_failed__status:
push 0x444678
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x409582
xor ecx, ecx
jmp 0x409589
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push edi
call fcn.00403050
push eax
call fcn.00405270
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
push 0x43ddd4
or eax, 0x800
push ecx
mov dword [ecx + 0x14], eax
mov ecx, edx
push dword [ebp - 0x428]
call fcn.00402ec0
add esp, 4
push eax
call fcn.00404fc0
mov eax, dword [ebp - 0x428]
push 0
push 0
cdq
push edx
push eax
push dword [ebp - 0x424]
push esi
call fcn.0040d960
add esp, 0x20
test al, al
jne 0x40961b
push str.____Failed_to_relocate_the_implant__n
push 0x444678
jmp 0x40966d
push dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
mov edx, esi
call fcn.00408b40
add esp, 4
test al, al
je 0x409675
push 0
push esi
call fcn.0040e150
mov edx, dword [ebp - 0x430]
add esp, 8
mov ecx, dword [ebp - 0x428]
call fcn.00408d70
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push str.Creating_detected_section_has_failed__n
push 0x444590
call fcn.00404fc0
add esp, 8
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040ebad
mov esp, ebp
pop ebp
ret