Function at 0x10026580
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005a279
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0x206
lea ecx, [esp + 0x26a]
push esi
push ecx
mov dword [esp + 0x3c], eax
mov word [esp + 0x270], si
call sub.MSVCR80.dll_memset
mov ecx, dword [0x1006eb44]
add esp, 0xc
lea edi, [esp + 0x264]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x480], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esp + 0x480], 1
je 0x100266c4
sub eax, 1
je 0x10026656
lea edx, [ecx - 0xc]
cmp edx, 0x1006eb34
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
je 0x10026bd4
lea esi, [ecx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10026bd4
push esi
jmp 0x10026bcc
mov ebx, 0x1005eba8
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], 0x14f
mov dword [esp + 0x18], 0x150
call fcn.10015b70
mov ebx, esi
lea esi, [esp + 0x20]
mov byte [esp + 0x480], 4
call fcn.10028e10
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100266ad
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100266ad
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], 0x143
add esi, 0x4dc
jmp 0x1002677c
mov ebx, 0x1005eb98
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], 0x14d
mov dword [esp + 0x18], 0x14e
call fcn.10015b70
mov ebx, esi
lea esi, [esp + 0x20]
mov byte [esp + 0x480], 2
call fcn.10028e10
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10026723
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10026723
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebx, 0x1005eba0
lea esi, [esp + 0x14]
call fcn.10015b70
mov ebx, esi
lea esi, [esp + 0x20]
mov byte [esp + 0x480], 3
call fcn.10028e10
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1002676a
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1002676a
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], 0x151
add esi, 0x4d8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x1b4]
mov dword [esp + 0x4c], edx
mov edx, dword [0x10070828]
push eax
push 0x10070828
mov dword [esp + 0x5c], 0x9f
mov dword [esp + 0x60], 0xa1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [esp + 0x480], 5
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esp + ebx*4 + 0x4c]
push eax
lea ecx, [esp + 0x38]
call fcn.10013a10
mov ecx, dword [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add ebx, 1
cmp ebx, 4
lea edi, [edi + eax*2 + 2]
jb 0x100267d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x206
lea edx, [esp + 0x62]
push 0
mov word [edi + eax*2], 0
push edx
mov word [esp + 0x68], 0
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
push 0xc
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [0x1006eb44]
mov dword [esp + 0x14], edx
mov byte [esp + 0x480], 6
mov eax, dword [edi + 0x170]
mov eax, dword [eax + 0x12c]
push eax
lea ecx, [esp + 0x18]
push 0x125
push ecx
call fcn.1001ad50
mov edx, dword [0x1006eb44]
add esp, 0xc
mov dword [esp + 0x18], edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x484], 7
mov edx, dword [edi + 4]
lea ecx, [esp + 0x268]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
call fcn.1004b2b0
mov ebx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x10026b27
push 0x2e
push ebx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x100268c1
or eax, 0xffffffff
jmp 0x100268c5
sub eax, ebx
sar eax, 1
mov ecx, dword [ebx - 8]
sub ecx, eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
sub ecx, 1
push edx
call fcn.10015170
mov byte [esp + 0x480], 8
xor edi, edi
jmp 0x100268f0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10026a5d
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10026a5d
mov eax, dword [ecx + edi*4]
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10026927
test esi, esi
jne 0x1002692c
add edi, 1
jmp 0x100268f0
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi]
push 0
push 0
push 0xb7
push eax
call edi
mov ecx, dword [esi]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push ecx
call edi
mov edx, dword [esi]
push 0
push 0
push 0xb7
push edx
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100269ac
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x100269ac
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x100269c9
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x100269c9
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x100269eb
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x100269eb
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x48]
push edx
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x10026a25
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
push ecx
call fcn.10024910
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10026a53
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10026a53
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
jmp 0x10026bd6
mov edx, dword [0x1006eb44]
push 0x11a
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
call fcn.10013a10
mov eax, dword [0x1006eb44]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x484], 0xa
call fcn.10013a10
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov eax, dword [edx + 4]
push 0x30
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10026b1f
lea ebx, [esi - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call esi
test eax, eax
jg 0x10026ad2
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebx, dword [esp + 0x18]
lea edx, [edi - 0xc]
cmp edx, 0x1006eb34
je 0x10026af4
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10026af4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10026b2d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x10026b2d
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x10026b2d
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10026ad6
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x10026b4a
lea edi, [ebx - 0xc]
push edi
call esi
test eax, eax
jg 0x10026b4a
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x14]
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x10026b6c
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10026b6c
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x48]
push edx
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x10026ba6
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
push ecx
call fcn.10024910
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10026bd4
lea edi, [eax - 0xc]
push edi
call esi
test eax, eax
jg 0x10026bd4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret 8