Function at 0x459f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598ec3
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x234], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x459fa5
xor eax, eax
jmp 0x45a4c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [esi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004430a0
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00440420
add esp, 0x14
mov byte [ebp - 4], 1
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x45a4dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x45a4e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, dword [edi]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
jne 0x45a0b2
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004403b0
add esp, 8
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00427100
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a08f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.00427100
mov edi, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
jmp 0x45a1e1
push eax
push dword [0x6299c4]
lea eax, [ebp - 0x21c]
push eax
call fcn.004430a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.00427100
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a0fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x220]
xor esi, esi
mov ebx, edi
movzx eax, word [edi]
test ax, ax
je 0x45a180
mov ecx, eax
mov edi, edi
push ecx
push 0x5b8b44
call fcn.005421e3
add esp, 8
test eax, eax
je 0x45a12d
test esi, esi
mov eax, ebx
cmovne eax, esi
mov esi, eax
jmp 0x45a12f
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x45a110
test esi, esi
je 0x45a180
sub esi, edi
sar esi, 1
js 0x45a4fa
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x45a16e
push esi
lea ecx, [ebp - 0x220]
call fcn.00426250
mov edi, dword [ebp - 0x220]
cmp esi, dword [edi - 8]
jg 0x45a4fa
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.004430a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00427100
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a1c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push 0
push 0
push esi
push dword [ebp - 0x230]
call fcn.0043fe10
add esp, 0x10
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x45a4f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 7
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x45a504
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 8
mov ebx, dword [eax - 0xc]
cmp ebx, 4
jg 0x45a244
add eax, 0xfffffff0
push eax
call fcn.00425f70
add esp, 4
add eax, 0x10
mov edx, eax
jmp 0x45a2b8
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x45a256
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x45a264
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff8
lea ebx, [ecx + ebx*2]
test edx, edx
je 0x45a50e
test ebx, ebx
je 0x45a4fa
mov eax, dword [edx]
mov ecx, edx
push 2
push 4
call dword [eax]
test eax, eax
je 0x45a518
add eax, 0x10
mov edx, eax
cmp dword [eax - 8], 4
jl 0x45a4fa
mov dword [eax - 0xc], 4
xor ecx, ecx
mov word [eax + 8], cx
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, str..msi
lea ecx, [ecx]
mov bx, word [edx]
cmp bx, word [ecx]
jne 0x45a2e6
test bx, bx
je 0x45a2e2
mov bx, word [edx + 2]
cmp bx, word [ecx + 2]
jne 0x45a2e6
add edx, 4
add ecx, 4
test bx, bx
jne 0x45a2c0
xor ebx, ebx
jmp 0x45a2eb
sbb ebx, ebx
or ebx, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a303
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x21c]
test ebx, ebx
jne 0x45a354
push 0xb
push str.msiexec.exe
call fcn.004263f0
mov ecx, dword [ebp - 0x238]
push esi
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x45a33d
lea eax, [ebp - 0x228]
push str._i___s_
push eax
call fcn.004289d0
add esp, 0xc
jmp 0x45a377
push eax
lea eax, [ebp - 0x228]
push 0x5b8b80
push eax
call fcn.004289d0
add esp, 0x10
jmp 0x45a377
lea eax, [ebp - 0x224]
push eax
call fcn.00427100
mov ecx, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00427100
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x234]
mov eax, dword [ecx]
mov ecx, 0x5b3ec4
jmp 0x45a390
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45a3b6
test dx, dx
je 0x45a3b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45a3b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x45a390
xor eax, eax
jmp 0x45a3bb
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 0x228]
neg eax
push 1
push ebx
sbb eax, eax
push 0
neg eax
push 1
dec eax
push eax
push esi
push dword [ebp - 0x21c]
call fcn.00475060
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov byte [ebp - 4], 7
cmp ebx, 1
sete al
or ebx, 0xffffffff
mov dword [ebp - 0x234], eax
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a41a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a43b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a45c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45a477
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a498
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a4ba
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
call fcn.004264f0
int3