Function at 0x406460
Capabilities:
Get common file path
Print debug messages
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dfbb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4300e4]
test eax, eax
sete byte [ebp - 0x269]
test eax, eax
jne 0x40678c
push str.node.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0040bf20
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406513
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402730
mov esi, 0x7ffffffe
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub eax, ecx
cmp eax, 0xf
jb 0x4067d6
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
push 0xf
cmova eax, dword [ebp - 0x238]
push str.mbcef73mb.dll
push ecx
push eax
push ecx
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004030b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
sub esi, ecx
cmp esi, 8
jb 0x4067d6
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
push 8
cmova eax, dword [ebp - 0x238]
push str.mbcef73
push ecx
push eax
push ecx
push dword [ebp - 0x270]
lea ecx, [ebp - 0x250]
call fcn.004030b0
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmova eax, dword [ebp - 0x238]
push eax
call esi
cmp dword [ebp - 0x254], 7
lea eax, [ebp - 0x268]
cmova eax, dword [ebp - 0x268]
push eax
call esi
cmp dword [ebp - 0x23c], 7
lea eax, [ebp - 0x250]
cmova eax, dword [ebp - 0x250]
push eax
call esi
cmp dword [ebp - 0x23c], 7
lea eax, [ebp - 0x250]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmova eax, dword [ebp - 0x250]
push eax
call esi
cmp dword [ebp - 0x254], 7
lea eax, [ebp - 0x268]
push 8
cmova eax, dword [ebp - 0x268]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp dword [ebp - 0x224], 7
mov dword [0x4300e4], eax
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push eax
call esi
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x4066aa
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4066a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067d1
push ecx
push edx
call fcn.0040a1c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp ecx, 7
jbe 0x40670a
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406700
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067d1
push ecx
push edx
call fcn.0040a1c1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
cmp ecx, 7
jbe 0x40676a
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067d1
push ecx
push edx
call fcn.0040a1c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [0x4300e4]
mov dword [ebp - 0x224], 7
push str.mbInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4067a0
xor al, al
jmp 0x4067b3
push edi
call eax
cmp byte [ebp - 0x269], 0
je 0x4067b1
call fcn.004049d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a183
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040d8ef
call fcn.004011c0
int3