Function at 0x4036f4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
and eax, 0x10
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], 0x4043eb
mov dword [ebp - 0x18], eax
jne 0x403735
test byte [0x40c88c], 1
je 0x403735
mov ecx, dword [0x40c820]
mov dword [ebp - 0x14], 0x40c268
mov dword [ebp - 0x10], ecx
jmp 0x40373f
mov eax, dword [0x40c818]
mov dword [ebp - 0x10], eax
mov ecx, eax
cmp ecx, edx
jne 0x403783
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [0x40c884]
push str.ACTIVDLL__04x:_No_module_found_for_the_target_process___u__architecture_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 2
pop ebx
jmp 0x40398c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov edi, dword [eax + 0x50]
mov eax, dword [0x40c82c]
mov ecx, dword [0x40c828]
add ecx, eax
lea eax, [ebp - 0xc]
push eax
add edi, 0xfff
lea eax, [ebp - 8]
and edi, 0xfffff000
lea esi, [ecx + edi + 0xc50]
push eax
push esi
call fcn.004046bb
mov ebx, eax
test ebx, ebx
je 0x4037f8
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push esi
push dword [0x40c884]
mov edi, eax
push str.ACTIVDLL__04x:_Unable_to_allocate_a_section_of__u_bytes__error__u_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x403965
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0xc]
call fcn.0040460f
mov ebx, eax
test ebx, ebx
je 0x40383e
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push dword [0x40c884]
push str.ACTIVDLL__04x:_Unable_to_map_the_section_into_the_target_process__error__u_n
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
jmp 0x4037ed
push dword [ebp - 4]
mov esi, dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call fcn.004047b6
mov ebx, eax
test ebx, ebx
je 0x40386e
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push dword [0x40c884]
push str.ACTIVDLL__04x:_Failed_buildig_the_target_image__error__u_n
jmp 0x403828
push dword [0x40c828]
add esi, edi
push dword [0x40c818]
lea eax, [esi + 0xc50]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [0x40c828]
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [0x40c82c]
add eax, edi
push dword [0x40c820]
lea eax, [eax + ecx + 0xc50]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
cdq
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov eax, dword [ebp - 4]
lea eax, [edi + eax + 0xc50]
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [0x40c828]
mov ecx, dword [ebp - 4]
add eax, edi
lea eax, [eax + ecx + 0xc50]
cdq
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov eax, dword [0x40c828]
mov dword [esi + 0x28], eax
mov eax, dword [0x40c82c]
add esp, 0xc
cmp dword [ebp - 0x18], 0
mov dword [esi + 0x2c], eax
jne 0x403910
test byte [0x40c88c], 1
je 0x403910
mov eax, dword [ebp + 8]
push dword [eax]
push esi
call fcn.00403649
jmp 0x403916
push esi
call fcn.0040359c
mov ebx, eax
test ebx, ebx
je 0x40393a
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push dword [0x40c884]
push str.ACTIVDLL__04x:_Unable_to_resolve_target_process_import__error__u_n
jmp 0x403828
push 0x800
push dword [ebp - 0x14]
add esi, 0x40
push esi
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [ebp + 0xc]
add eax, edi
push eax
add eax, 0x40
push eax
push dword [ebp + 8]
call fcn.004060b3
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40397d
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp dword [ebp - 0xc], 0
je 0x40398c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8