Function at 0x407ca0
Capabilities:
Get common file path
Get startup folder
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x44de85
mov eax, dword fs:[0]
push eax
sub esp, 0x5c0
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x5b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x5d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5e4]
xor ebx, ebx
push 0x4681f4
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4681f4
mov dword [0x46822c], ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea esi, [esp + 0xd4]
call fcn.00403140
mov dword [esp + 0x5dc], ebx
cmp dword [esp + 0xec], ebx
je 0x407d4c
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x407d38
lea eax, [esp + 0xdc]
push eax
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esp + 0xd8]
call fcn.00403cf0
lea esi, [esp + 0xb4]
call fcn.00403010
mov byte [esp + 0x5dc], 1
cmp eax, ebx
je 0x407d69
add eax, 4
jmp 0x407d6b
xor eax, eax
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xe0]
call fcn.00401670
mov byte [esp + 0x5dc], 0
mov edi, 8
mov esi, vtable.TString.0
mov dword [esp + 0xb4], esi
cmp dword [esp + 0xd0], edi
jb 0x407dac
mov eax, dword [esp + 0xbc]
push eax
call fcn.00438e12
add esp, 4
cmp dword [esp + 0xec], ebx
je 0x407fc8
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0xc0], cx
push ebx
lea eax, [esp + 0xe0]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], ebx
call fcn.00401670
mov dword [esp + 0xb4], esi
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x5e0], 2
call fcn.0040bf00
push str._DESTDIR_
mov ebx, 9
xor eax, eax
lea edx, [esp + 0xbc]
call fcn.00407290
mov esi, eax
cmp esi, 0xffffffff
je 0x407f61
lea ecx, [esp + 0x1c]
call fcn.00402840
mov byte [esp + 0x5dc], 3
test eax, eax
je 0x407e44
lea edi, [eax + 4]
jmp 0x407e46
xor edi, edi
lea eax, [esp + 0xd8]
lea edx, [esi + 0xa]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x60]
call fcn.00401640
push eax
push edi
lea edi, [esp + 0x80]
mov byte [esp + 0x5e4], 4
call fcn.00404ce0
add esp, 8
mov byte [esp + 0x5dc], 5
xor ecx, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [esp + 0x48], cx
mov ebx, 7
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], edi
call fcn.00401670
mov esi, vtable.TString.0
mov dword [esp + 0x3c], esi
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x48]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x5e4], 6
call fcn.00401670
mov dword [esp + 0x3c], esi
mov esi, 8
cmp dword [esp + 0x58], esi
jb 0x407ee0
mov edx, dword [esp + 0x44]
push edx
call fcn.00438e12
add esp, 4
xor eax, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
cmp dword [esp + 0x90], esi
jb 0x407f05
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00438e12
add esp, 4
xor edx, edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], dx
cmp dword [esp + 0x74], esi
jb 0x407f2d
mov eax, dword [esp + 0x60]
push eax
call fcn.00438e12
add esp, 4
xor ecx, ecx
mov byte [esp + 0x5dc], 2
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], esi
jb 0x407f69
mov edx, dword [esp + 0x24]
push edx
call fcn.00438e12
add esp, 4
jmp 0x407f69
mov esi, 8
lea ebx, [esi - 1]
lea edi, [esp + 0xf4]
call fcn.004061d0
lea eax, [esp + 0xd4]
push eax
mov ecx, edi
push ecx
mov byte [esp + 0x5e4], bl
call fcn.004067e0
mov ecx, edi
call fcn.004066c0
mov byte [esp + 0x5dc], 0
mov dword [esp + 0xb4], vtable.TString.0
cmp dword [esp + 0xd0], esi
jb 0x4080ae
mov edx, dword [esp + 0xbc]
push edx
call fcn.00438e12
add esp, 4
jmp 0x4080ae
push 0x40e
lea ecx, [esp + 0x1c2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x1c8], ax
call fcn.0043ad60
add esp, 0xc
push 1
push 5
lea edx, [esp + 0x1c4]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0x1bc]
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408021
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c0]
lea esi, [esp + 0xbc]
call fcn.00401760
mov esi, vtable.TString.0
mov dword [esp + 0xb4], esi
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x5e4], 8
call fcn.00401670
mov byte [esp + 0x5dc], 0
mov dword [esp + 0xb4], esi
cmp dword [esp + 0xd0], edi
jb 0x408096
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [esp + 0xe0]
call fcn.00404520
mov ebx, 7
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x38], esp
lea ecx, [esi + 4]
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0x100]
mov word [ecx + 4], dx
call fcn.00401670
mov dword [esi], vtable.TString.0
call fcn.00403090
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push ebp
call esi
cmp dword [esp + 0xf0], 8
mov ecx, dword [esp + 0xdc]
jae 0x40810a
lea ecx, [esp + 0xdc]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esp + 0xd8]
call fcn.00403cf0
push 0x4681f4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x468228]
push 0x4681f4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x65
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x80
push ebp
call ebx
push 0x3e9
push ebp
call esi
push 0x640000
push 0
mov edi, eax
push 0x401
push edi
call ebx
push 0
push 0
push 0x402
push edi
call ebx
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 0x3ef
push ebp
call esi
push 0x79
lea ebx, [esp + 0x98]
mov dword [esp + 0x18], eax
call fcn.00403b00
mov byte [esp + 0x5dc], 9
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x4081be
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x3f0
push ebp
call esi
push 0
push eax
call edi
push 0x3ec
push ebp
call esi
push 0x7a
lea ebx, [esp + 0x20]
mov edi, eax
call fcn.00403b00
mov byte [esp + 0x5dc], 0xa
test eax, eax
je 0x4081fd
add eax, 4
jmp 0x4081ff
xor eax, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa0]
call fcn.00401670
mov byte [esp + 0x5dc], 9
mov ebx, 8
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], ebx
jb 0x408237
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x40824e
lea eax, [esp + 0x9c]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
call edi
push 0x3ed
push ebp
call esi
push 0x7b
lea ebx, [esp + 0x20]
mov dword [esp + 0x18], eax
call fcn.00403b00
mov byte [esp + 0x5dc], 0xb
test eax, eax
je 0x408280
add eax, 4
jmp 0x408282
xor eax, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa0]
call fcn.00401670
mov byte [esp + 0x5dc], 9
mov ebx, 8
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], ebx
jb 0x4082ba
mov edx, dword [esp + 0x24]
push edx
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x4082d1
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
push 1
push ebp
call esi
push 0x78
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00403b00
mov byte [esp + 0x5dc], 0xc
test eax, eax
je 0x4082fe
add eax, 4
jmp 0x408300
xor eax, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa0]
call fcn.00401670
mov byte [esp + 0x5dc], 9
mov ebx, 8
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], ebx
jb 0x408338
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x40834f
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0x18]
push eax
push edx
call edi
push 0x3ea
push ebp
call esi
push 0x7c
lea ebx, [esp + 0x20]
mov edi, eax
call fcn.00403b00
mov byte [esp + 0x5dc], 0xd
test eax, eax
je 0x40837d
add eax, 4
jmp 0x40837f
xor eax, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa0]
call fcn.00401670
mov byte [esp + 0x5dc], 9
mov ebx, 8
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], ebx
jb 0x4083b7
mov eax, dword [esp + 0x24]
push eax
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x4083ce
lea eax, [esp + 0x9c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3eb
push ebp
call esi
push 0x7d
lea ebx, [esp + 0x20]
mov edi, eax
call fcn.00403b00
mov byte [esp + 0x5dc], 0xe
test eax, eax
je 0x40840c
add eax, 4
jmp 0x40840e
xor eax, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa0]
call fcn.00401670
mov byte [esp + 0x5dc], 9
mov esi, 8
mov dword [esp + 0x1c], vtable.TString.0
cmp dword [esp + 0x38], esi
jb 0x408446
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00438e12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x40845d
lea eax, [esp + 0x9c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea esi, [esp + 0x1c]
call fcn.00403180
cmp dword [eax + 0x18], 0
ja 0x408481
cmp dword [0x46829c], 0
jne 0x408481
xor bl, bl
jmp 0x408483
mov bl, 1
cmp dword [esp + 0x38], 8
mov dword [esp + 0x1c], vtable.TString.0
jb 0x40849f
mov edx, dword [esp + 0x24]
push edx
call fcn.00438e12
add esp, 4
push 0
test bl, bl
je 0x4084a9
push 0
jmp 0x4084ab
push 1
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x14]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 1
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x468298], 0
je 0x4084f4
push 0
push 0x3ed
push 0x111
push ebp
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 8
mov edi, vtable.TString.0
mov dword [esp + 0x94], edi
cmp dword [esp + 0xb0], esi
jb 0x40851e
mov eax, dword [esp + 0x9c]
push eax
call fcn.00438e12
add esp, 4
xor ecx, ecx
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], cx
mov dword [esp + 0xd4], edi
cmp dword [esp + 0xf0], esi
jb 0x40855e
mov edx, dword [esp + 0xdc]
push edx
call fcn.00438e12
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x5d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.00438b17
add esp, 0x5cc
ret