Function at 0x4b6fa0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5647e5
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
mov edi, ecx
mov ecx, dword [0x5ba2a8]
push 0x208
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x28], edi
call fcn.004123d0
lea eax, [esp + 0x4c]
lea ecx, [edi + 0x134]
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bp
jne 0x4b7006
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00401e70
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.004b3930
mov eax, vtable.CArray_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____.0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x468], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [0x5c30a0], ebp
mov dword [0x5c30a4], ebp
mov byte [esp + 0x468], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x38]
cmp dword [edi + 0xac], ebp
je 0x4b715e
push 0xffffffffffffffff
push 1
call fcn.00433f00
mov ecx, dword [esp + 0x3c]
push 0x5c30dc
call fcn.00405fa0
mov ebx, dword [0x5c30d0]
cmp word [ebx], bp
je 0x4b735e
call fcn.0050830c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x4b73b2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ecx
movzx eax, word [ebx]
mov byte [esp + 0x468], 4
cmp ax, bp
je 0x4b72c6
cmp ax, 0x3b
je 0x4b729d
mov edi, dword [ecx - 0xc]
movzx ebp, ax
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x4b7122
push esi
lea ecx, [esp + 0x18]
call fcn.00401c00
mov ecx, dword [esp + 0x14]
mov word [ecx + edi*2], bp
test esi, esi
jl 0x4b73bc
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x4b73bc
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
add ebx, 2
mov word [edx + esi*2], cx
movzx eax, word [ebx]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
test ax, ax
jne 0x4b70f0
jmp 0x4b72c6
mov edx, dword [0x5c30d8]
push ecx
push edx
call fcn.00435170
mov ecx, dword [0x5c30d4]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.00435170
mov eax, dword [esp + 0x3c]
mov ebx, eax
mov esi, eax
xor ecx, ecx
mov edx, 0xa8
mul edx
seto cl
mov dword [esp + 0x30], ebx
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004ff272
add esp, 0x14
mov dword [esp + 0x18], eax
mov byte [esp + 0x468], 2
cmp eax, ebp
je 0x4b71dc
push fcn.004c2c30
push fcn.004bdd70
push esi
lea edi, [eax + 4]
push 0xa8
push edi
mov dword [eax], esi
call fcn.00540dee
mov eax, edi
jmp 0x4b71de
xor eax, eax
xor edi, edi
cmp ebx, ebp
mov byte [esp + 0x468], 1
mov dword [esp + 0x18], eax
jle 0x4b70a9
mov ebx, eax
cmp edi, ebp
jl 0x4b7298
cmp edi, dword [esp + 0x2c]
jge 0x4b7298
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + edi*4]
push eax
call fcn.00422660
add esp, 4
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.004022e0
cmp edi, dword [esp + 0x2c]
mov byte [esp + 0x468], 3
jge 0x4b7298
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
lea ecx, [edx + edi*4]
push eax
call fcn.00405fa0
mov ecx, dword [esp + 0x14]
push ebp
push ebp
push ecx
mov ecx, ebx
call fcn.004c9930
push esi
call fcn.004ff267
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x468], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b7282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
add ebx, 0xa8
cmp edi, dword [esp + 0x20]
jl 0x4b71f6
jmp 0x4b70a9
call fcn.005078a4
cmp word [ebx], bp
je 0x4b72c6
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, bp
je 0x4b72c6
mov edi, edi
mov edx, 0x20
cmp dx, ax
jne 0x4b72c6
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, bp
jne 0x4b72b0
cmp dword [ecx - 0xc], ebp
jle 0x4b7331
lea eax, [esp + 0x14]
push eax
call fcn.00414170
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx - 0xc]
add esp, 4
xor esi, esi
mov ebp, eax
test eax, eax
jle 0x4b732f
jmp 0x4b72f4
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x114], 0
jne 0x4b732f
test esi, esi
jl 0x4b7298
cmp esi, eax
jge 0x4b7298
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push eax
push edx
push edi
push ecx
call fcn.00434d60
mov ecx, dword [esp + 0x2c]
inc esi
add esp, 0x18
cmp esi, ebp
jl 0x4b72f0
xor ebp, ebp
lea eax, [ecx - 0x10]
mov byte [esp + 0x468], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b7355
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [ebx], bp
jne 0x4b70b8
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4b7386
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004c2c30
push ecx
push 0xa8
push eax
call fcn.00540209
push esi
call fcn.004ff267
add esp, 4
mov ecx, dword [esp + 0x1c]
call fcn.004b69b0
mov edx, dword [0x5ba2a8]
mov eax, dword [edx + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0050830c
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4b73c6
push 0x80004005
call fcn.00401350
push 0x80070057
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0xe001
mov byte [esp + 0x46c], 5
call fcn.00508284
cmp eax, ebp
je 0x4b73ff
push 0xe001
push eax
lea ecx, [esp + 0x20]
call fcn.00401da0
mov edi, dword [esp + 0x18]
mov ecx, dword [0x5ed04c]
mov edx, dword [ecx + 0x10c]
push edi
push ebp
push 0x40b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x114]
neg esi
sbb esi, esi
add edi, 0xfffffff0
mov byte [esp + 0x468], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b744b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], 0
call fcn.004489d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x468], 0xffffffff
call fcn.004489d0
mov eax, esi
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0053fa67
add esp, 0x458
ret