Function at 0x4a62b0
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 0x50fb7b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x562040]
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 [0x56d4d8]
test eax, eax
sete byte [ebp - 0x269]
test eax, eax
jne 0x4a6535
push str.node.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004d4ca0
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 eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6363
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00416d40
mov esi, 0x7ffffffe
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub eax, ecx
cmp eax, 0xf
jb 0x4a657f
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.0041c2b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
sub esi, ecx
cmp esi, 8
jb 0x4a657f
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.0041c2b0
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 [0x56d4d8], eax
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push eax
call esi
lea ecx, [ebp - 0x250]
call fcn.00414f80
lea ecx, [ebp - 0x268]
call fcn.00414f80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x4a6513
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a6509
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a657a
push ecx
push edx
call fcn.004cfce1
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [0x56d4d8]
mov dword [ebp - 0x224], 7
push str.mbInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a6549
xor al, al
jmp 0x4a655c
push edi
call eax
cmp byte [ebp - 0x269], 0
je 0x4a655a
call fcn.004a4820
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.004cfcce
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004df8cc
call fcn.00401690
int3