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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598653
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x62819c]
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 0x45e085
xor eax, eax
jmp 0x45e5a0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
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.00447160
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.004444c0
add esp, 0x14
mov byte [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45e5bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45e5c6
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 0x45e192
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00444450
add esp, 8
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0042a6a0
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 0x45e16f
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.0042a6a0
mov edi, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
jmp 0x45e2c1
push eax
push dword [0x631760]
lea eax, [ebp - 0x21c]
push eax
call fcn.00447160
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.0042a6a0
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 0x45e1da
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 0x45e260
mov ecx, eax
mov edi, edi
push ecx
push 0x5b51b4
call fcn.0054bcf3
add esp, 8
test eax, eax
je 0x45e20d
test esi, esi
mov eax, ebx
cmovne eax, esi
mov esi, eax
jmp 0x45e20f
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x45e1f0
test esi, esi
je 0x45e260
sub esi, edi
sar esi, 1
js 0x45e5da
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x45e24e
push esi
lea ecx, [ebp - 0x220]
call fcn.004296d0
mov edi, dword [ebp - 0x220]
cmp esi, dword [edi - 8]
jg 0x45e5da
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.00447160
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.0042a6a0
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 0x45e2a8
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.00443eb0
add esp, 0x10
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45e5d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 7
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45e5e4
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 0x45e324
add eax, 0xfffffff0
push eax
call fcn.004293f0
add esp, 4
add eax, 0x10
mov edx, eax
jmp 0x45e398
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x45e336
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
jne 0x45e344
call fcn.00428a90
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 0x45e5ee
test ebx, ebx
je 0x45e5da
mov eax, dword [edx]
mov ecx, edx
push 2
push 4
call dword [eax]
test eax, eax
je 0x45e5f8
add eax, 0x10
mov edx, eax
cmp dword [eax - 8], 4
jl 0x45e5da
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 0x45e3c6
test bx, bx
je 0x45e3c2
mov bx, word [edx + 2]
cmp bx, word [ecx + 2]
jne 0x45e3c6
add edx, 4
add ecx, 4
test bx, bx
jne 0x45e3a0
xor ebx, ebx
jmp 0x45e3cb
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 0x45e3e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x21c]
test ebx, ebx
jne 0x45e434
push 0xb
push str.msiexec.exe
call fcn.00429870
mov ecx, dword [ebp - 0x238]
push esi
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x45e41d
lea eax, [ebp - 0x228]
push str._i___s_
push eax
call fcn.0042bf70
add esp, 0xc
jmp 0x45e457
push eax
lea eax, [ebp - 0x228]
push 0x5b51f0
push eax
call fcn.0042bf70
add esp, 0x10
jmp 0x45e457
lea eax, [ebp - 0x224]
push eax
call fcn.0042a6a0
mov ecx, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0042a6a0
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x234]
mov eax, dword [ecx]
mov ecx, 0x5b01ec
jmp 0x45e470
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45e496
test dx, dx
je 0x45e492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45e496
add eax, 4
add ecx, 4
test dx, dx
jne 0x45e470
xor eax, eax
jmp 0x45e49b
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.00479ca0
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 0x45e4fa
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 0x45e51b
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 0x45e53c
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 0x45e557
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 0x45e578
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 0x45e59a
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
call fcn.00429970
int3