Function at 0x4a7e30
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 0x511a8b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x564040]
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 [0x56f5bc]
test eax, eax
sete byte [ebp - 0x269]
test eax, eax
jne 0x4a80b5
push 0x526ed4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004d6cd0
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 0x4a7ee3
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00416e30
mov esi, 0x7ffffffe
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub eax, ecx
cmp eax, 0xf
jb 0x4a80ff
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.0041c3f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
sub esi, ecx
cmp esi, 8
jb 0x4a80ff
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.0041c3f0
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 [0x56f5bc], eax
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push eax
call esi
lea ecx, [ebp - 0x250]
call fcn.00415020
lea ecx, [ebp - 0x268]
call fcn.00415020
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x4a8093
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a8089
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a80fa
push ecx
push edx
call fcn.004d1b31
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [0x56f5bc]
mov dword [ebp - 0x224], 7
push str.mbInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a80c9
xor al, al
jmp 0x4a80dc
push edi
call eax
cmp byte [ebp - 0x269], 0
je 0x4a80da
call fcn.004a63a0
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.004d1b1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e183c
call fcn.00401630
int3