Function at 0x406b90
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52eb69
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
push ebx
push esi
push edi
mov eax, dword [0x57ddc8]
xor eax, esp
push eax
lea eax, [esp + 0x3f0]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00410866
xor ebx, ebx
push ebx
call fcn.004113ae
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.0041189c
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.004100ad
mov dword [esp + 0x24], vtable.CPreInstCmdLineInfo.0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [esp + 0x3fc], ebx
call fcn.0040f691
lea edx, [esp + 0x24]
lea edi, [esi + 0xbc]
push edi
mov dword [esi + 0x18c], edx
call fcn.00407020
cmp eax, ebx
je 0x406db0
lea eax, [esi + 0xc0]
push eax
call fcn.00407370
cmp eax, ebx
je 0x406db0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, ebx
je 0x406db0
lea ecx, [esi + 0xc4]
call fcn.00401f80
cmp eax, ebx
je 0x406db0
mov ecx, dword [esi + 0x18c]
cmp dword [ecx + 0x54], ebx
je 0x406cb9
call fcn.0040ac50
xor eax, eax
cmp eax, ebx
je 0x406db0
cmp dword [esp + 0x60], ebx
jne 0x406ccd
push esi
call fcn.00407770
cmp eax, ebx
je 0x406db0
cmp dword [esp + 0x64], ebx
jne 0x406ce2
mov eax, esi
call fcn.00407820
cmp eax, ebx
je 0x406db0
mov edi, 1
cmp dword [esp + 0x68], ebx
jne 0x406d55
lea ecx, [esp + 0x7c]
push ecx
call fcn.00408660
mov dword [esp + 0x7c], vtable.CPreInstEULADlg.0
lea edx, [esp + 0x7c]
mov byte [esp + 0x3f8], 1
mov ecx, edx
mov dword [esi + 0x188], edx
call fcn.00412814
cmp eax, 0x65
je 0x406d2b
mov dword [esp + 0x10], edi
xor edi, edi
lea eax, [esp + 0x7c]
mov byte [esp + 0x3f8], bl
push eax
mov dword [esi + 0x188], ebx
mov dword [esp + 0x80], vtable.CPreInstEULADlg.0
call fcn.00406f40
cmp edi, ebx
je 0x406ee9
lea ecx, [esp + 0x7c]
push ecx
call fcn.00408660
lea edx, [esp + 0x7c]
mov byte [esp + 0x3f8], 2
mov ecx, edx
mov dword [esi + 0x188], edx
call fcn.00412814
cmp eax, 0x65
jne 0x406d87
mov dword [esp + 0x10], 2
jmp 0x406d94
cmp eax, 0x66
jne 0x406d94
mov dword [esp + 0x10], 1
lea eax, [esp + 0x7c]
push eax
mov dword [esi + 0x188], ebx
mov byte [esp + 0x3fc], bl
call fcn.00406f40
jmp 0x406ee9
cmp dword [0x58598c], ebx
jne 0x406ee9
mov dword [0x58598c], 1
call fcn.0040cf26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406de0
push 0x80004005
call fcn.00406140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x3f8], 3
call fcn.0040cf26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406e12
push 0x80004005
call fcn.00406140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x4e20
mov byte [esp + 0x3fc], 4
call fcn.0040d9e8
cmp eax, ebx
je 0x406e9a
push 0x4e20
push eax
lea ecx, [esp + 0x1c]
call fcn.00405cc0
cmp eax, ebx
je 0x406e9a
push 0x4e21
call fcn.0040d9e8
cmp eax, ebx
je 0x406e9a
push 0x4e21
push eax
lea ecx, [esp + 0x20]
call fcn.00405cc0
cmp eax, ebx
je 0x406e9a
mov ecx, dword [esi + 0x188]
push 0x10
cmp ecx, ebx
je 0x406e89
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00414ed3
jmp 0x406e9a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x3f8], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ec2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3f8], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x406f0d
cmp dword [esp + 0x50], ebx
je 0x406f0d
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3f8], 0xffffffff
call fcn.00410117
xor eax, eax
mov ecx, dword [esp + 0x3f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret