Function at 0x403500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a417
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x448e28]
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 eax, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov dword [ebp - 0x278], eax
mov word [ebp - 0x21c], cx
call fcn.004221b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x270]
push ecx
call fcn.0040a9e0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0
call fcn.00408640
push 0xb
push str.dtl_install
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00406d90
push 0x43fc58
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00405a30
mov edi, dword [eax]
add esp, 0xc
test edi, edi
je 0x403600
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x403600
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00429740
mov esi, esp
test esi, esi
je 0x403600
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x403602
xor eax, eax
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40362b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x258]
mov ebx, eax
test eax, eax
jne 0x40363b
xor ecx, ecx
jmp 0x40367c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x403678
lea edi, [eax + eax]
mov eax, edi
call fcn.00429740
mov esi, esp
test esi, esi
je 0x403678
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40367a
xor eax, eax
mov ecx, eax
mov edi, 0xf
mov eax, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4036a0
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.00407f40
xor ebx, ebx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.00408d00
test eax, eax
jne 0x40373b
mov esi, 0x10
cmp dword [ebp - 0x23c], esi
jb 0x403706
mov edx, dword [ebp - 0x250]
push edx
call fcn.00412e16
add esp, 4
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], 0
cmp dword [ebp - 0x220], esi
jb 0x403730
mov eax, dword [ebp - 0x234]
push eax
call fcn.00412e16
add esp, 4
mov dword [ebp - 0x220], edi
jmp 0x403902
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
mov eax, edx
sub eax, ecx
sar eax, 6
xor edi, edi
cmp eax, ebx
jbe 0x403830
xor esi, esi
cmp edi, eax
jb 0x40376f
call fcn.004202bb
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + esi + 0x38], 1
jne 0x4037b7
sub edx, ecx
sar edx, 6
cmp edi, edx
jb 0x40378a
call fcn.004202bb
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + esi + 0x18], 0x10
jb 0x4037a4
mov ecx, dword [ecx + esi + 4]
push ecx
mov ecx, dword [ebp - 0x278]
add ecx, 0xb8
jmp 0x40380c
lea ecx, [ecx + esi + 4]
push ecx
mov ecx, dword [ebp - 0x278]
add ecx, 0xb8
jmp 0x40380c
mov eax, edx
sub eax, ecx
sar eax, 6
cmp edi, eax
jb 0x4037d3
call fcn.004202bb
mov edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + esi + 0x38], 2
jne 0x40381d
sub edx, ecx
sar edx, 6
cmp edi, edx
jb 0x4037ee
call fcn.004202bb
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + esi + 0x18], 0x10
jb 0x4037fb
mov ecx, dword [ecx + esi + 4]
jmp 0x4037ff
lea ecx, [ecx + esi + 4]
push ecx
mov ecx, dword [ebp - 0x278]
add ecx, 0xb4
call fcn.00407af0
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x260]
mov eax, edx
sub eax, ecx
inc edi
sar eax, 6
add esi, 0x40
cmp edi, eax
jb 0x40376f
lea ecx, [ebp - 0x274]
push ecx
call fcn.00404f90
push str.Global029E1EB6_7A55_4fd7_8815_105B2087C1FAdtl2013
push ebx
push 0x1f0001
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40388b
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push str.DTLService.exe
call fcn.00408640
call fcn.004051f0
add esp, 4
cmp eax, ebx
jne 0x40388b
mov ecx, dword [ebp - 0x278]
mov eax, dword [ecx + 0xb4]
push eax
mov edx, 0x43fdac
call fcn.00403ab0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x10
cmp dword [ebp - 0x23c], edi
jb 0x4038cd
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00412e16
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], 0
cmp dword [ebp - 0x220], edi
jb 0x4038fc
mov edx, dword [ebp - 0x234]
push edx
call fcn.00412e16
add esp, 4
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x224], ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x264]
cmp eax, ebx
je 0x403961
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x260]
push ecx
push edx
call fcn.004073a0
mov eax, dword [ebp - 0x264]
push eax
call fcn.00412e16
add esp, 0xc
mov ecx, dword [ebp - 0x270]
push ecx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00412e16
add esp, 4
lea esp, [ebp - 0x28c]
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.0041f350
mov esp, ebp
pop ebp
ret 4