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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d37e1
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x298], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x439df4
xor al, al
jmp 0x43a0ee
sub esp, 8
mov ecx, ebx
push str.important
call fcn.00440970
mov esi, 0x50fc5c
test eax, eax
je 0x43a008
sub esp, 8
mov ecx, eax
push str.item
call fcn.00440970
mov edi, eax
test edi, edi
je 0x43a002
nop dword [eax]
mov dword [ebp - 0x29c], 0
mov ecx, esi
mov eax, dword [edi + 4]
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x29c]
push eax
push 0x4eddd0
push ecx
call fcn.00429210
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push dword [ebp - 0x29c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439eb0
sub eax, edx
lea ecx, [ebp - 0x24c]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040beb0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x23c], 0
je 0x439fd7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x294]
call fcn.00408390
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409770
cmp dword [esi + 0x14], 0x10
jb 0x439f0d
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439f30
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.0040e3a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push dword [ebp - 0x29c]
push eax
push ecx
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ecx + 0xb8]
call fcn.00443130
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x439fae
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x439fa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a10c
push edx
push ecx
call fcn.0048d8eb
add esp, 8
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x294]
push eax
call fcn.0048dbcc
mov esi, 0x50fc5c
sub esp, 8
mov ecx, edi
push str.item
call fcn.004408e0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.0040c2c0
test edi, edi
jne 0x439e30
mov edi, dword [ebp - 0x298]
sub esp, 8
mov ecx, ebx
push 0x4eddd4
call fcn.00440970
test eax, eax
je 0x43a034
mov eax, dword [eax + 4]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004b1745
add esp, 4
mov dword [edi + 0xc8], eax
sub esp, 8
mov ecx, ebx
push 0x4eddd8
call fcn.00440970
test eax, eax
je 0x43a05e
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
push esi
call fcn.004b1745
add esp, 4
mov dword [edi + 0xcc], eax
sub esp, 8
mov ecx, ebx
push 0x4edddc
call fcn.00440970
test eax, eax
je 0x43a07e
lea ecx, [edi + 0xe0]
push ecx
push eax
call fcn.004399f0
sub esp, 8
mov ecx, ebx
push str.Script
call fcn.00440970
test eax, eax
je 0x43a09e
lea edx, [edi + 0xf0]
push edx
push eax
call fcn.00439a70
sub esp, 8
mov ecx, ebx
push str.Other
call fcn.00440970
test eax, eax
je 0x43a0ec
sub esp, 8
mov ecx, eax
push str.item
call fcn.00440970
mov esi, eax
test esi, esi
je 0x43a0ec
add edi, 0xf8
nop dword [eax]
push edi
push esi
call fcn.00439a70
sub esp, 8
mov ecx, esi
push str.item
call fcn.004408e0
mov esi, eax
test esi, esi
jne 0x43a0d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
call fcn.004b0023
int3