Function at 0x40ae13
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
cmp dword [section..eecseg], 0xeecc04f1
je 0x40ae4d
push str.EEC3:_EEC_magic_is_incorrect_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40b0d1
mov dword [ebp - 0x24], 0x400000
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x74], 1
ja 0x40ae81
push str.EEC3:_no_import_table_present_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40b0d1
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x74]
shl eax, 3
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x78
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40aebd
push str.EEC3:_failed_to_unprotect_data_directories_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40b0d1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x74], 0xc
jbe 0x40aee3
push 8
pop eax
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x42f018]
mov esi, dword [0x42f01c]
mov dword [ecx + eax + 0x78], edx
mov dword [ecx + eax + 0x7c], esi
push 8
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x42f010]
mov esi, dword [0x42f014]
mov dword [ecx + eax + 0x78], edx
mov dword [ecx + eax + 0x7c], esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x74]
shl eax, 3
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x78
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x30], str._SYSTEMROOT__system32__SYSTEMROOT__
and dword [ebp - 0x20], 0
cmp dword [0x42d678], 0
je 0x40af3b
mov dword [ebp - 0x2c], 1
jmp 0x40af3f
and dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40af87
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push dword [0x42d678]
push 0
push dword [ebp - 0x30]
call fcn.0040c041
add esp, 0x20
movzx eax, al
test eax, eax
jne 0x40af85
push str.EEC3:_Cant_concatenate_strings_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40b0d1
jmp 0x40af8d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push 0x64
push 8
call fcn.0040b8e3
push eax
call dword [0x42d690]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push 0
call fcn.0040b8e3
push eax
call dword [0x42d68c]
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x50], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040b239
pop ecx
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], eax
and dword [0x42d688], 0
xor eax, eax
mov byte [ebp - 0xe], al
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b266
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
push str.PATH
call fcn.0040befc
pop ecx
test eax, eax
jne 0x40b04b
push dword [ebp - 0x24]
call fcn.0040abb4
pop ecx
mov byte [ebp - 0x10], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040b18e
mov dword [ebp - 4], 2
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 0xf]
test eax, eax
jne 0x40b03f
lea ecx, [ebp - 0x58]
call fcn.0040b0de
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x10]
jmp 0x40b0d1
push 0x42d688
push dword [ebp - 0x20]
call fcn.0040cc6f
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40b097
push dword [ebp - 0x24]
call fcn.0040abb4
pop ecx
movzx eax, al
test eax, eax
je 0x40b097
mov eax, dword [0x42c898]
and eax, 8
jne 0x40b08e
push dword [0x42d688]
call fcn.0040ce7e
pop ecx
movzx eax, al
test eax, eax
je 0x40b097
mov dword [ebp - 0x34], 1
jmp 0x40b09b
and dword [ebp - 0x34], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x12], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040b18e
mov dword [ebp - 4], 3
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x40b0ca
lea ecx, [ebp - 0x58]
call fcn.0040b0de
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret