Function at 0x497bf0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x3c]
sub esp, 0x3c
push 0xffffffffffffffff
push 0x5432fb
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp + 0x38], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov edi, ecx
mov dword [ebp], edi
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x497c67
test byte [eax + 0x1c], 2
je 0x497c67
cmp byte [eax + 0x19], 6
jb 0x497c67
push str.Install
push str.Entered_function
push dword [eax + 0x14]
mov edx, 0x56bf18
mov ecx, 0xa
push dword [eax + 0x10]
call fcn.00497390
add esp, 0x10
mov ecx, edi
call fcn.004bbe80
mov esi, eax
mov dword [ebp + 4], esi
test esi, esi
jne 0x49812c
call fcn.004a2ed0
mov esi, eax
mov dword [ebp + 4], esi
test esi, esi
jne 0x49812c
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
lea ecx, [ebp + 0x20]
push ebx
mov dword [ebp + 4], esi
call fcn.0047b000
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], 0
call fcn.00492f70
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x34], 8
jb 0x497cd0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x497cd0
push eax
call fcn.005074d4
add esp, 4
test esi, esi
je 0x497ed2
mov ecx, ebx
call fcn.00483f10
cmp eax, 0xffffffff
je 0x497cec
test al, 0x10
jne 0x497ed2
push 2
call fcn.004a0950
mov ecx, eax
call fcn.004a0b00
test al, al
je 0x497de1
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.0047b550
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.0047eed0
mov edx, str..installer.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x70
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Failed_to_create_Install_directory.
mov ecx, eax
call fcn.0047f130
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
call fcn.0047ac60
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0047b6a0
mov ebx, eax
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 0x10
jb 0x497d96
mov ebx, dword [ebx]
call fcn.004a0950
push ebx
push 2
mov ecx, eax
call fcn.004a0b40
lea ecx, [ebp + 0x20]
call fcn.0047ac60
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0047b620
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
jmp 0x497dda
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 4], esi
cmp esi, 0x91
je 0x49812c
push 2
call fcn.004a0950
mov ecx, eax
call fcn.004a0b00
test al, al
je 0x49802c
sub esp, 8
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0xa8]
call fcn.0047b550
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xc
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa8]
call fcn.0047eed0
mov edx, str..installer.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x85
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Failed_to_Install__Starting_RollBack.
mov ecx, eax
call fcn.0047f130
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xc
call fcn.0047ac60
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0047b6a0
mov ebx, eax
mov byte [ebp - 4], 0xe
cmp dword [ebx + 0x14], 0x10
jb 0x497e9d
mov ebx, dword [ebx]
call fcn.004a0950
push ebx
push 2
mov ecx, eax
call fcn.004a0b40
lea ecx, [ebp + 0x20]
call fcn.0047ac60
lea ecx, [ebp - 0xa8]
call fcn.004790d0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
jmp 0x49812c
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0047b000
call fcn.004a2dc0
add esp, 0x18
test al, al
je 0x498038
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, eax
mov dword [ebp + 4], esi
test esi, esi
jne 0x497de4
mov ecx, edi
call fcn.004bc410
mov esi, eax
mov dword [ebp + 4], esi
test esi, esi
jne 0x497de4
push 4
call fcn.004a0950
mov ecx, eax
call fcn.004a0b00
test al, al
je 0x49812c
sub esp, 8
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0xa8]
call fcn.0047b550
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x11
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa8]
call fcn.0047eed0
mov edx, str..installer.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x89
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Install_Successfull.
mov ecx, eax
call fcn.0047f130
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x11
call fcn.0047ac60
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0047b6a0
mov edi, eax
mov byte [ebp - 4], 0x13
cmp dword [edi + 0x14], 0x10
jb 0x497fc2
mov edi, dword [edi]
call fcn.004a0950
push edi
push 4
mov ecx, eax
call fcn.004a0b40
lea ecx, [ebp + 0x20]
call fcn.0047ac60
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.0047b620
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x49812c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
jmp 0x49812c
call fcn.004a33f0
push 2
call fcn.004a0950
mov ecx, eax
call fcn.004a0b00
test al, al
je 0x498124
sub esp, 8
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.0047b550
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 7
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa8]
call fcn.0047eed0
mov edx, str..installer.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x7e
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, str.Error:_Install_directory_not_empty.
mov ecx, eax
call fcn.0047f130
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 7
call fcn.0047ac60
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0047b6a0
mov esi, eax
mov byte [ebp - 4], 9
cmp dword [esi + 0x14], 0x10
jb 0x4980e7
mov esi, dword [esi]
call fcn.004a0950
push esi
push 2
mov ecx, eax
call fcn.004a0b40
lea ecx, [ebp + 0x20]
call fcn.0047ac60
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.0047b620
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, 0x91
mov dword [ebp + 4], esi
mov eax, dword [0x59e598]
test al, 1
jne 0x49815d
or eax, 1
mov dword [0x59e598], eax
mov dword [ebp - 4], 0x15
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x596f88]
test byte [eax + 0x1c], 2
je 0x498178
cmp byte [eax + 0x19], 6
jb 0x498178
mov al, 1
jmp 0x49817a
xor al, al
cmp byte [0x59e5a8], 0
jne 0x498194
cmp byte [0x59e5a9], 0
jne 0x498194
test al, al
je 0x4982f8
sub esp, 8
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x140]
call fcn.0047b550
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0x17
call fcn.004a0cb0
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x140]
call fcn.0047eed0
mov edx, str..installer.cpp
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
push 0x8d
mov ecx, eax
call fcn.0047b1b0
mov edx, 0x56a378
mov ecx, eax
call fcn.0047f130
mov edx, 0x56a498
mov ecx, eax
call fcn.0047f130
mov edx, str.Install
mov ecx, eax
call fcn.0047f130
mov edx, 0x570fc8
mov ecx, eax
call fcn.0047f130
mov edx, str._with_result
mov ecx, eax
call fcn.0047f130
push esi
mov ecx, eax
call fcn.0047b350
mov byte [ebp - 4], 0x17
cmp dword [ebp + 0x34], 0x10
jb 0x498248
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x498248
push eax
call fcn.005074d4
add esp, 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x140]
call fcn.0047b6a0
mov edi, eax
mov byte [ebp - 4], 0x19
cmp dword [edi + 0x14], 0x10
jb 0x498265
mov edi, dword [edi]
mov eax, dword [0x59e598]
test al, 1
jne 0x498290
or eax, 1
mov dword [0x59e598], eax
mov byte [ebp - 4], 0x1a
call fcn.004a08c0
push 0x54e860
call fcn.0050765d
add esp, 4
mov byte [ebp - 4], 0x19
push edi
push 6
mov ecx, 0x59e5a8
call fcn.004a0b40
cmp dword [ebp + 0x1c], 0x10
jb 0x4982b3
mov eax, dword [ebp + 8]
test eax, eax
je 0x4982b3
push eax
call fcn.005074d4
add esp, 4
lea ecx, [ebp - 0xf0]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
mov byte [ebp - 4], 0x16
call fcn.0047b620
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x56a6f8
push eax
call fcn.0052889f
add esp, 4
jmp 0x4982f8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38]
xor ecx, ebp
call fcn.00506c7d
lea esp, [ebp + 0x3c]
pop ebp
ret