Function at 0x407dc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4745fe
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], eax
call fcn.00421b00
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.Utils_advdataprocnew.ini
mov dword [esp + 0x264], 0
call fcn.004061e0
add esp, 8
mov byte [esp + 0x25c], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407e55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4e]
push edx
mov word [esp + 0x50], cx
call fcn.004560e0
mov eax, dword [0x48c7fc]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x48c7fc
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x44]
push eax
push 0x104
mov byte [esp + 0x264], 3
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407f0f
cmp word [esp + 0x44], 0
je 0x407f0f
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x407ecf
mov ecx, 0x104
lea eax, [esp + 0x24]
call fcn.00406b60
mov ebp, dword [esp + 0x24]
push 0x104
push ebp
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.00454737
add esp, 8
test eax, eax
jl 0x407ff6
cmp eax, dword [ebp - 8]
jg 0x407ff6
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], dx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str._advdataprocnew.ini
call fcn.004061e0
add esp, 8
mov byte [esp + 0x25c], 4
mov edx, dword [0x48c7fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x48c7fc
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov bl, 5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], bl
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, 0x47a054
call fcn.00420eb0
mov edi, dword [esp + 0x34]
add esp, 4
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x260], 6
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x264], bl
call fcn.00420d10
add esp, 8
test eax, eax
je 0x40813d
mov eax, dword [0x48c7fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48c7fc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x25c], 7
call fcn.0042bbe0
movzx eax, word [eax]
mov ecx, 0x804
cmp ax, cx
jne 0x408000
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, 0x47a05c
jmp 0x40800f
push 0x80070057
call fcn.00406db0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, str.URLEN
call fcn.00420eb0
mov eax, dword [esp + 0x20]
add esp, 8
cmp dword [eax - 0xc], 0
jle 0x408115
lea esi, [esp + 0x30]
call fcn.00421b00
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.UtilsDocProtect.exe
mov byte [esp + 0x264], 8
call fcn.004061e0
add esp, 8
mov bl, 0xa
mov byte [esp + 0x25c], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x260], 0xb
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
push 0x493e0
mov byte [esp + 0x268], bl
call fcn.00421000
add esp, 0xc
test eax, eax
je 0x4080ed
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
call fcn.00407c30
mov ecx, dword [esp + 0x38]
add esp, 4
mov byte [ecx + 0x66d], 0
mov byte [esp + 0x25c], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x25c], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40813d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x25c], 4
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40815e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x25c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x25c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045300b
add esp, 0x24c
ret 4