Function at 0x4a9030
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 0x51327b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x566040]
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 [0x5715d8]
test eax, eax
sete byte [ebp - 0x269]
test eax, eax
jne 0x4a92b5
push str.node.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004d7f00
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 0x4a90e3
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00416cf0
mov esi, 0x7ffffffe
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub eax, ecx
cmp eax, 0xf
jb 0x4a92ff
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.0041bb70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
sub esi, ecx
cmp esi, 8
jb 0x4a92ff
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.0041bb70
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 [0x5715d8], eax
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push eax
call esi
lea ecx, [ebp - 0x250]
call fcn.00414f60
lea ecx, [ebp - 0x268]
call fcn.00414f60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x4a9293
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a9289
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a92fa
push ecx
push edx
call fcn.004d3111
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [0x5715d8]
mov dword [ebp - 0x224], 7
push str.mbInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a92c9
xor al, al
jmp 0x4a92dc
push edi
call eax
cmp byte [ebp - 0x269], 0
je 0x4a92da
call fcn.004a75a0
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.004d30fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e2a5c
call fcn.00401610
int3