Function at 0x4033cb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x234
lea ebp, [esp - 4]
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x234], eax
push 0x34
mov eax, 0x41b87b
call fcn.0040b33b
mov eax, dword [ebp + 0x240]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov esi, 0x104
push esi
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp + 0x1c], bx
call fcn.0040c420
add esp, 0xc
push esi
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403491
xor eax, eax
mov word [ebp + 0x22c], bx
lea edi, [ebp + 0x22e]
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp + 0x126]
push ebx
push eax
mov word [ebp + 0x124], bx
call fcn.0040c420
push ebx
push ebx
lea eax, [ebp + 0x124]
push eax
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040d4d6
lea eax, [ebp - 0x1c]
push eax
push str..dll
push str.MorDebug
lea eax, [ebp + 0x124]
push eax
lea eax, [ebp + 0x22c]
push eax
call fcn.00403294
add esp, 0x34
push esi
lea eax, [ebp + 0x126]
push ebx
push eax
mov word [ebp + 0x124], bx
call fcn.0040c420
add esp, 0xc
push esi
lea eax, [ebp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403516
xor eax, eax
mov word [ebp + 0x22c], bx
lea edi, [ebp + 0x22e]
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp + 0x1e]
push ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.0040c420
push ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x124]
push eax
call fcn.0040d4d6
lea eax, [ebp - 0x1c]
push eax
push str..dll
push str.MorDebug
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x22c]
push eax
call fcn.00403294
add esp, 0x34
lea ecx, [ebp - 0x1c]
call fcn.00402227
test eax, eax
jbe 0x403633
lea ecx, [ebp - 0x40]
call fcn.00402717
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0040267f
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040267f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004022c0
test al, al
jne 0x403628
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x24]
call fcn.00402253
push eax
lea ecx, [ebp]
call fcn.00401949
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
mov byte [ebp - 4], 2
jae 0x40358b
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4035ee
push str.MorDebug_InitEngine
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x4035ee
push str.MorDebug_GetSinkByName
push edi
call esi
cmp eax, ebx
mov dword [ebp + 0x22c], eax
je 0x4035ee
push str.MorDebug_CreateNamedPipeHandler
push edi
call esi
cmp eax, ebx
je 0x4035ee
push str.MorDebug_CleanupEngine
push edi
call esi
push dword [ebp - 0x34]
mov dword [0x423904], eax
call dword [ebp - 0x30]
test eax, eax
pop ecx
jl 0x4035ee
push str.Forwarder
call dword [ebp + 0x22c]
pop ecx
mov dword [0x423900], eax
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004013a2
lea ecx, [ebp - 0x24]
call fcn.00402274
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040267f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004022c0
test al, al
je 0x40356a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00402f7b
lea ecx, [ebp - 0x1c]
call fcn.00402dc9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.0040af65
add ebp, 0x238
leave
ret