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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043886
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x10059070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
nop dword [eax + eax]
push 0xb
xor eax, eax
mov dword [ebp - 0x27c], 7
push str.SettingsApp
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
call fcn.100068a0
lea ecx, [ebp - 0x278]
call fcn.10003170
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x290]
call fcn.10003070
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x2e4], 7
mov dword [ebp - 0x2e8], 0
mov word [ebp - 0x2f8], ax
cmp word [ebp - 0x218], ax
jne 0x1000354a
xor ecx, ecx
jmp 0x10003562
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003553
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.100068a0
push ecx
lea edx, [ebp - 0x2f8]
lea ecx, [ebp - 0x260]
call fcn.1000a0d0
mov eax, dword [ebp - 0x2e4]
add esp, 4
cmp eax, 8
jb 0x100035a8
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.10008410
push 0x50
lea eax, [ebp - 0x2e0]
push 0
push eax
call fcn.10024780
add esp, 0xc
lea ecx, [ebp - 0x2e0]
call fcn.10003a50
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.10003a10
cmp dword [ebp - 0x234], 0x10
lea esi, [ebp - 0x248]
cmovae esi, dword [ebp - 0x248]
mov edx, esi
call fcn.10002ba0
cmp byte [esi], 0
mov dword [ebp - 0x2e4], 0xf
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 0x2f8], 0
jne 0x1000361e
xor ecx, ecx
jmp 0x1000362c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003623
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2f8]
call fcn.10006bd0
lea eax, [ebp - 0x2f8]
push str.___DoUpdateInstanceEx
push eax
lea ecx, [ebp - 0x328]
call fcn.1000a160
add esp, 4
lea ecx, [ebp - 0x230]
mov edx, eax
call fcn.1000a080
mov eax, dword [ebp - 0x314]
add esp, 4
cmp eax, 0x10
jb 0x100036af
mov ecx, dword [ebp - 0x328]
inc eax
cmp eax, 0x1000
jb 0x100036a6
test cl, 0x1f
jne 0x100039eb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100039eb
sub ecx, eax
cmp ecx, 4
jb 0x100039eb
cmp ecx, 0x23
ja 0x100039eb
mov ecx, eax
push ecx
call fcn.10021dd2
add esp, 4
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x314], 0xf
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x328], 0
cmp eax, 0x10
jb 0x10003716
mov ecx, dword [ebp - 0x2f8]
inc eax
cmp eax, 0x1000
jb 0x1000370d
test cl, 0x1f
jne 0x100039eb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100039eb
sub ecx, eax
cmp ecx, 4
jb 0x100039eb
cmp ecx, 0x23
ja 0x100039eb
mov ecx, eax
push ecx
call fcn.10021dd2
add esp, 4
cmp byte [esi], 0
mov dword [ebp - 0x2fc], 0xf
mov dword [ebp - 0x300], 0
mov byte [ebp - 0x310], 0
jne 0x1000373a
xor ecx, ecx
jmp 0x10003749
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003740
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x310]
call fcn.10006bd0
lea ecx, [ebp - 0x310]
call fcn.10002e70
mov ecx, dword [ebp - 0x2fc]
mov bl, al
cmp ecx, 0x10
jb 0x100037b0
mov edx, dword [ebp - 0x310]
inc ecx
cmp ecx, 0x1000
jb 0x100037a7
test dl, 0x1f
jne 0x100039eb
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x100039eb
sub edx, eax
cmp edx, 4
jb 0x100039eb
cmp edx, 0x23
ja 0x100039eb
mov edx, eax
push edx
call fcn.10021dd2
add esp, 4
mov dword [ebp - 0x2fc], 0xf
mov dword [ebp - 0x300], 0
mov byte [ebp - 0x310], 0
test bl, bl
je 0x100037e8
cmp dword [ebp - 0x21c], 0x10
lea edx, [ebp - 0x230]
cmovae edx, dword [ebp - 0x230]
call fcn.100031e0
mov edx, str.Failed_to_call_the_DLL_function.
mov ecx, 0x1005aca0
call fcn.100094c0
push eax
call fcn.10009770
add esp, 4
push 0x36ee80
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x10003853
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x1000
jb 0x1000384a
test cl, 0x1f
jne 0x100039eb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100039eb
sub ecx, eax
cmp ecx, 4
jb 0x100039eb
cmp ecx, 0x23
ja 0x100039eb
mov ecx, eax
push ecx
call fcn.10021dd2
add esp, 4
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp eax, 0x10
jb 0x100038ba
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x1000
jb 0x100038b1
test cl, 0x1f
jne 0x100039eb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100039eb
sub ecx, eax
cmp ecx, 4
jb 0x100039eb
cmp ecx, 0x23
ja 0x100039eb
mov ecx, eax
push ecx
call fcn.10021dd2
add esp, 4
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
mov dword [ebp - method.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.virtual_0], vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
cmp eax, 8
jb 0x100038fd
inc eax
lea ecx, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2b8]
call fcn.10008410
xor eax, eax
mov dword [ebp - 0x2a4], 7
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2a8], 0
mov word [ebp - 0x2b8], ax
call fcn.10004060
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2d4]
test ecx, ecx
je 0x10003947
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10003947
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x1000396c
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.10008410
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x100039a7
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.10008410
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x100034c0
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.10008410
jmp 0x100034c0
call fcn.10028657
int3