Function at 0x417c10
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x55df01
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x634]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0050b420
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 0x417c73
sub eax, edx
sar eax, 1
test eax, eax
jle 0x417ca0
jmp 0x417c90
cmp word [esp + eax*2 + 0x220], 0x5c
je 0x417ca0
dec eax
test eax, eax
jg 0x417c90
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 0x417cc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x224]
push eax
mov ecx, ebx
call fcn.00401e40
mov eax, dword [ebx]
push 0x208
lea ecx, [esp + 0x224]
push ecx
push eax
call fcn.0044cb60
add esp, 0xc
test eax, eax
je 0x417d2d
lea eax, [esp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417d05
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x224]
push edx
mov ecx, ebx
call fcn.00401e40
push 0x5c
mov ecx, ebx
call fcn.00405c40
push 0x57bc10
push str.Path
push str.Install
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0051571c
lea esi, [edi + 0xdc]
push eax
mov ecx, esi
mov dword [esp + 0x640], 0
call fcn.004060b0
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 0x417d8a
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 0x417db9
lea ecx, [eax - 1]
test ecx, ecx
jl 0x417eac
cmp ecx, eax
jg 0x417eac
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x417db9
push 0x5c
mov ecx, esi
call fcn.00405c40
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x417dc9
push ebx
mov ecx, esi
call fcn.004060b0
mov eax, dword [esi]
push eax
push str.INI_directory
push str.Install
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0051571c
push eax
mov ecx, 0x5ba37c
mov dword [esp + 0x640], 1
call fcn.004060b0
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 0x417e1e
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.0051571c
push eax
mov ecx, 0x5ba380
mov dword [esp + 0x640], 2
call fcn.004060b0
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 0x417e71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5ba37c
call fcn.00415b40
push 0x5ba380
call fcn.00415b40
mov ecx, dword [0x5ba37c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 8
push ecx
call ebx
test eax, eax
je 0x417eb6
mov edx, dword [0x5ba378]
mov eax, dword [edx + 0xd8]
push eax
call ebx
jmp 0x417edd
push 0x80070057
call fcn.00401340
mov ecx, dword [0x5ba37c]
push ecx
call fcn.0044eaf0
add esp, 4
push esi
mov ecx, 0x5ba37c
call fcn.004060b0
push 0x5ba37c
call fcn.00415b40
add esp, 4
mov edx, dword [0x5ba380]
push edx
call ebx
test eax, eax
je 0x417efa
mov eax, dword [0x5ba378]
mov ecx, dword [eax + 0xd8]
push ecx
call ebx
jmp 0x417f21
mov edx, dword [0x5ba380]
push edx
call fcn.0044eaf0
add esp, 4
push esi
mov ecx, 0x5ba380
call fcn.004060b0
push 0x5ba380
call fcn.00415b40
add esp, 4
mov eax, dword [0x5ba37c]
push eax
call fcn.00417ae0
add esp, 4
test eax, eax
jne 0x417f94
lea ecx, [esp + 0x18]
push 0x1a
push ecx
call fcn.0044c420
add esp, 8
test eax, eax
jne 0x417f6e
lea edx, [esp + 0x18]
push 5
push edx
call fcn.0044c420
add esp, 8
test eax, eax
jne 0x417f6e
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0053fe1c
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f75
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5ba37c
call fcn.00401e40
mov eax, dword [edi + 0x64]
push eax
call fcn.00540a67
push 0x410
call fcn.0054099d
mov ecx, dword [esi]
push ecx
push 0x208
push eax
mov dword [edi + 0x64], eax
call fcn.0053fe1c
mov ecx, dword [0x5ba378]
add esp, 0x14
push 0
push 0
push str.Language
push str.Install
call fcn.005154ce
push eax
mov ecx, edi
call fcn.00412c00
mov edx, dword [edi + 0xc4]
mov ecx, dword [0x5ba378]
push edx
push str.Language
push str.Install
call fcn.00515539
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.0053f73f
add esp, 0x62c
ret