Function at 0x406820
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f399
mov eax, dword fs:[0]
push eax
sub esp, 0x398
push ebx
push esi
push edi
mov eax, dword [0x451598]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
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.00413ec7
xor ebx, ebx
push ebx
call fcn.004152cf
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.00415844
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.0041452c
mov dword [esp + 0x24], vtable.CPreInstCmdLineInfo.0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
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
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [esp + 0x3b4], ebx
call fcn.00413ac0
lea edx, [esp + 0x24]
lea edi, [esi + 0xa8]
push edi
mov dword [esi + 0x138], edx
call fcn.00406cd0
cmp eax, ebx
je 0x406a3a
lea eax, [esi + 0xac]
push eax
call fcn.00407050
cmp eax, ebx
je 0x406a3a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, ebx
je 0x406a3a
lea ecx, [esi + 0xb0]
push ecx
call fcn.00401ce0
cmp eax, ebx
je 0x406a3a
mov ecx, dword [esi + 0x138]
cmp dword [ecx + 0x48], ebx
je 0x406946
call fcn.0040aeb0
xor eax, eax
cmp eax, ebx
je 0x406a3a
cmp dword [esp + 0x58], ebx
jne 0x40695a
push esi
call fcn.00407480
cmp eax, ebx
je 0x406a3a
cmp dword [esp + 0x5c], ebx
jne 0x40696f
mov ecx, esi
call fcn.00407530
cmp eax, ebx
je 0x406a3a
cmp dword [esp + 0x60], ebx
mov edi, 1
jne 0x4069df
lea edx, [esp + 0x74]
push edx
call fcn.004080f0
mov dword [esp + 0x74], vtable.CPreInstEULADlg.0
lea eax, [esp + 0x74]
mov byte [esp + 0x3b0], 1
mov ecx, eax
mov dword [esi + 0x134], eax
call fcn.00416150
cmp eax, 0x65
je 0x4069b8
mov dword [esp + 0x10], edi
xor edi, edi
lea ecx, [esp + 0x74]
mov byte [esp + 0x3b0], bl
push ecx
mov dword [esi + 0x134], ebx
mov dword [esp + 0x78], vtable.CPreInstEULADlg.0
call fcn.00406bd0
cmp edi, ebx
je 0x406b73
lea edx, [esp + 0x74]
push edx
call fcn.004080f0
lea eax, [esp + 0x74]
mov byte [esp + 0x3b0], 2
mov ecx, eax
mov dword [esi + 0x134], eax
call fcn.00416150
cmp eax, 0x65
jne 0x406a11
mov dword [esp + 0x10], 2
jmp 0x406a1e
cmp eax, 0x66
jne 0x406a1e
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x74]
push ecx
mov dword [esi + 0x134], ebx
mov byte [esp + 0x3b4], bl
call fcn.00406bd0
jmp 0x406b73
cmp dword [0x455820], ebx
jne 0x406b73
mov dword [0x455820], 1
call fcn.0040d815
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406a6a
push 0x80004005
call fcn.00405a30
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 + 0x3b0], 3
call fcn.0040d815
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406a9c
push 0x80004005
call fcn.00405a30
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 + 0x3b4], 4
call fcn.0040deaa
cmp eax, ebx
je 0x406b24
push 0x4e20
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e40
cmp eax, ebx
je 0x406b24
push 0x4e21
call fcn.0040deaa
cmp eax, ebx
je 0x406b24
push 0x4e21
push eax
lea ecx, [esp + 0x20]
call fcn.00405e40
cmp eax, ebx
je 0x406b24
mov ecx, dword [esi + 0x134]
cmp ecx, ebx
push 0x10
je 0x406b13
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.0040fbc9
jmp 0x406b24
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 + 0x3b0], 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 0x406b4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3b0], 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 0x406b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x406b97
cmp dword [esp + 0x48], ebx
je 0x406b97
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.0041456b
xor eax, eax
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret