Function at 0x41b940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66dc18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [str._TEMP_]
mov dword [ebp - 4], 2
test eax, eax
jne 0x41b989
push 0x80004005
call fcn.00404730
mov esi, dword [ebp + 0x18]
mov ecx, esi
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41b9b6
test dx, dx
je 0x41b9b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41b9b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x41b990
xor eax, eax
jmp 0x41b9bb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x41ba1d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41b9e8
push 0x104
lea ecx, [ebp + 0x18]
call fcn.004049c0
mov esi, dword [ebp + 0x18]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 0x18]
push dword [eax - 8]
push eax
call fcn.0063465b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41ba38
mov eax, dword [ebp + 0x18]
cmp ecx, dword [eax - 8]
jg 0x41ba38
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 0x18]
mov word [eax + ecx*2], dx
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x14]
call fcn.0040ed80
mov byte [ebp - 4], 3
test eax, eax
je 0x41ba42
add eax, 4
jmp 0x41ba44
push 0x80070057
call fcn.00404730
xor eax, eax
mov eax, dword [eax]
sub esp, 8
mov edi, esp
sub eax, 0x10
mov dword [ebp - 0x14], edi
push eax
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
call fcn.00404750
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [edi], vtable.CPathEx.0
call fcn.0041c000
mov edx, dword [ebp - 0x1c]
add esp, 8
test al, al
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], vtable.CStringEx.0
sete byte [ebp - 0xd]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41baa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x41bb13
mov esi, dword [ebp + 8]
push 0x6910b0
lea ecx, [esi + 4]
call fcn.00403110
mov dword [esi], vtable.CPathEx.0
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41badb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41baf7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp + 0x14]
call fcn.004117a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x14]
call fcn.00410690
mov byte [ebp - 4], 4
test eax, eax
je 0x41bb2e
add eax, 4
jmp 0x41bb30
xor eax, eax
mov eax, dword [eax]
sub esp, 8
mov edi, esp
sub eax, 0x10
mov dword [ebp - 0x14], edi
push eax
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
call fcn.00404750
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [edi], vtable.CPathEx.0
call fcn.00414f20
mov edx, dword [ebp - 0x1c]
add esp, 8
test al, al
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], vtable.CStringEx.0
mov eax, ebx
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bb8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x41baa7
cmp byte [ebp + 0x1c], 0
je 0x41bc84
call fcn.00427fa4
mov ecx, eax
test ecx, ecx
jne 0x41bbb3
push 0x80004005
call fcn.00404730
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x30], vtable.CISPath.0
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 5
jge 0x41bbed
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004049c0
mov edi, dword [ebp - 0x2c]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41bc2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push 0x6910b0
mov dword [0x72de3c], eax
lea ecx, [esi + 4]
call fcn.00403110
lea ecx, [ebp - 0x30]
mov dword [esi], vtable.CPathEx.0
call fcn.004093e0
jmp 0x41babd
push dword [edi - 8]
push edi
call fcn.0063465b
add esp, 8
test eax, eax
js 0x41ba38
cmp eax, dword [edi - 8]
jg 0x41ba38
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [edi - 0xc], eax
add esi, 4
mov word [edi + eax*2], cx
lea eax, [edi - 0x10]
push eax
mov dword [ebp - 0x14], esi
call fcn.00404750
add eax, 0x10
lea ecx, [ebp - 0x30]
mov dword [esi], eax
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CPathEx.0
call fcn.004093e0
jmp 0x41babd
mov esi, 1
mov dword [ebp - 0x14], esi
nop dword [eax]
call fcn.00427fa4
test eax, eax
je 0x41b97f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov dword [ebp - 0x28], vtable.CISPath.0
lea edx, [eax + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 6
jge 0x41bcd9
push 0x104
lea ecx, [ebp - 0x24]
call fcn.004049c0
mov edx, dword [ebp - 0x24]
push edx
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41be8f
mov eax, dword [ebp - 0x24]
push dword [eax - 8]
push eax
call fcn.0063465b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41ba38
mov eax, dword [ebp - 0x24]
cmp ecx, dword [eax - 8]
jg 0x41ba38
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x24]
mov word [eax + ecx*2], dx
mov eax, dword [0x7250a0]
test eax, eax
je 0x41b97f
push eax
push dword [ebp + 0x10]
call fcn.00634812
add esp, 8
test eax, eax
je 0x41bd84
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404750
add eax, 0x10
lea ecx, [ebp - 0x28]
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00410a40
mov edx, dword [ebp - 0x34]
mov eax, ebx
mov dword [ebp - 0x38], vtable.CStringEx.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bd84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
mov edi, esp
mov dword [ebp - 0x1c], edi
lea esi, [edi + 4]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push eax
call fcn.00404750
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [edi], vtable.CPathEx.0
call fcn.00414f20
add esp, 8
test al, al
je 0x41bdf1
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov dword [ebp - 0x28], vtable.CStringEx.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bddd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
add esi, 1
mov dword [ebp - 0x14], esi
jns 0x41bc90
jmp 0x41baa7
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push eax
call fcn.00404750
mov edx, dword [ebp - 0x24]
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dword [edi], vtable.CPathEx.0
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
mov dword [ebp - 0x28], vtable.CStringEx.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41be39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41be57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41be73
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp + 0x14]
call fcn.004117a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push 0x6910b0
mov dword [0x72de3c], eax
lea ecx, [esi + 4]
call fcn.00403110
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov dword [esi], vtable.CPathEx.0
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], vtable.CStringEx.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41babd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41babd