Function at 0x40e430
Capabilities:
Get common file path
Get graphical window text
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x43e3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
mov eax, dword [0x44a2b8]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
push 0x441b18
push 0x208
push 0x104
push 0x44f220
call fcn.00425032
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
xor esi, esi
push esi
push 1
push pe_nt_image_headers32
push 0x3e8
push edi
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebp
cmp eax, 1
jne 0x40e4d3
push 0x44f018
push 0x442658
push 0x208
push 0x104
push 0x44f220
mov dword [0x4514d4], esi
call fcn.00425032
add esp, 0x14
push esi
push 1
push pe_nt_image_headers32
push 0x3ea
push edi
call ebx
push eax
call ebp
cmp eax, 1
jne 0x40e5ee
push esi
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
push 0x441b18
lea esi, [esp + 0x18]
mov dword [0x4514d4], eax
mov dword [esp + 0x30], 7
call fcn.00401d00
push 1
push 5
lea eax, [esp + 0x23c]
push eax
push 0
mov dword [esp + 0x458], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e5a8
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e541
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x238]
push ecx
lea esi, [esp + 0x18]
call fcn.00401d00
mov eax, dword [esp + 0x24]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e572
call fcn.0042588d
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40e581
lea eax, [esp + 0x14]
cmp word [eax + esi*2], 0x5c
je 0x40e598
push 1
push 0x4420e8
lea ecx, [esp + 0x18]
call fcn.0040ff40
push 0xe
push 0x4420ec
lea ecx, [esp + 0x18]
call fcn.0040ff40
mov esi, dword [esp + 0x28]
cmp esi, 8
mov ecx, dword [esp + 0x14]
jae 0x40e5b9
lea ecx, [esp + 0x14]
mov edx, 0x44f220
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40e5c0
cmp esi, 8
mov dword [esp + 0x448], 0xffffffff
jb 0x40e5ee
mov edx, dword [esp + 0x14]
push edx
call fcn.004250ac
add esp, 4
push 0
push 1
push pe_nt_image_headers32
push 0x3e9
push edi
call ebx
push eax
call ebp
cmp eax, 1
jne 0x40e6ef
mov esi, edi
mov dword [0x4514d4], 2
call fcn.0040bb20
test eax, eax
jne 0x40e63c
push 0x10
push 0x4418d4
push edi
mov ecx, 0x44266c
call fcn.00407d60
add esp, 0xc
xor eax, eax
jmp 0x40e6f4
push 0x104
push 0x44f220
push 0x414
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x44f220
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e660
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x40e6ef
mov eax, 0x44f220
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e680
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x44f21e], 0x5c
je 0x40e6ef
push 0x206
lea eax, [esp + 0x32]
push 0
push eax
mov word [esp + 0x38], cx
call fcn.00429d70
push 0x44f220
push 0x441d18
push 0x208
lea ecx, [esp + 0x44]
push 0x104
push ecx
call fcn.00425032
lea edx, [esp + 0x4c]
push edx
push 0x44210c
push 0x208
push 0x104
push 0x44f220
call fcn.00425032
add esp, 0x34
mov eax, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00424e88
add esp, 0x43c
ret