Function at 0x417b00
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x55e061
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x634]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0050ad42
mov eax, dword [eax + 8]
push 0x208
lea ecx, [esp + 0x224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b63
sub eax, edx
sar eax, 1
test eax, eax
jle 0x417b90
jmp 0x417b80
cmp word [esp + eax*2 + 0x220], 0x5c
je 0x417b90
dec eax
test eax, eax
jg 0x417b80
xor edx, edx
mov word [esp + eax*2 + 0x222], dx
lea eax, [esp + 0x220]
lea ebx, [edi + 0xe0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417bb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x224]
push eax
mov ecx, ebx
call fcn.00401e70
mov eax, dword [ebx]
push 0x208
lea ecx, [esp + 0x224]
push ecx
push eax
call fcn.0044ed20
add esp, 0xc
test eax, eax
je 0x417c1d
lea eax, [esp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417bf5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x224]
push edx
mov ecx, ebx
call fcn.00401e70
push 0x5c
mov ecx, ebx
call fcn.00405b30
push 0x57bd68
push str.Path
push str.Install
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00515095
lea esi, [edi + 0xdc]
push eax
mov ecx, esi
mov dword [esp + 0x640], 0
call fcn.00405fa0
mov eax, dword [esp + 0x14]
or ebp, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x63c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x417ca9
lea ecx, [eax - 1]
test ecx, ecx
jl 0x417d9c
cmp ecx, eax
jg 0x417d9c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x417ca9
push 0x5c
mov ecx, esi
call fcn.00405b30
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x417cb9
push ebx
mov ecx, esi
call fcn.00405fa0
mov eax, dword [esi]
push eax
push str.INI_directory
push str.Install
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00515095
push eax
mov ecx, 0x5ba2ac
mov dword [esp + 0x640], 1
call fcn.00405fa0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x63c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push eax
push str.STX_ACP_CTL
push str.Install
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00515095
push eax
mov ecx, 0x5ba2b0
mov dword [esp + 0x640], 2
call fcn.00405fa0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x63c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x417d61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5ba2ac
call fcn.00415a30
push 0x5ba2b0
call fcn.00415a30
mov ecx, dword [0x5ba2ac]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 8
push ecx
call ebx
test eax, eax
je 0x417da6
mov edx, dword [0x5ba2a8]
mov eax, dword [edx + 0xd8]
push eax
call ebx
jmp 0x417dcd
push 0x80070057
call fcn.00401350
mov ecx, dword [0x5ba2ac]
push ecx
call fcn.00450280
add esp, 4
push esi
mov ecx, 0x5ba2ac
call fcn.00405fa0
push 0x5ba2ac
call fcn.00415a30
add esp, 4
mov edx, dword [0x5ba2b0]
push edx
call ebx
test eax, eax
je 0x417dea
mov eax, dword [0x5ba2a8]
mov ecx, dword [eax + 0xd8]
push ecx
call ebx
jmp 0x417e11
mov edx, dword [0x5ba2b0]
push edx
call fcn.00450280
add esp, 4
push esi
mov ecx, 0x5ba2b0
call fcn.00405fa0
push 0x5ba2b0
call fcn.00415a30
add esp, 4
mov eax, dword [0x5ba2ac]
push eax
call fcn.004179d0
add esp, 4
test eax, eax
jne 0x417e9f
mov eax, dword [0x5ed04c]
test eax, eax
je 0x417e2f
mov eax, dword [eax + 0x20]
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.004d5b80
add esp, 0xc
test eax, eax
jne 0x417e78
mov eax, dword [0x5ed04c]
test eax, eax
je 0x417e4f
mov eax, dword [eax + 0x20]
push 5
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004d5b80
add esp, 0xc
test eax, eax
jne 0x417e78
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0054013c
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e80
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5ba2ac
call fcn.00401e70
mov eax, dword [edi + 0x64]
push eax
call fcn.005411ca
push 0x410
call fcn.00541100
mov ecx, dword [esi]
push ecx
push 0x208
push eax
mov dword [edi + 0x64], eax
call fcn.0054013c
mov ecx, dword [0x5ba2a8]
add esp, 0x14
push 0
push 0
push str.Language
push str.Install
call fcn.00514e47
push eax
mov ecx, edi
call fcn.00412a70
mov edx, dword [edi + 0xc4]
mov ecx, dword [0x5ba2a8]
push edx
push str.Language
push str.Install
call fcn.00514eb2
mov ecx, dword [esp + 0x634]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.0053fa67
add esp, 0x62c
ret