Function at 0x4515c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x487f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x10], ebx
push edi
mov byte [esp + 0x13], bl
call fcn.00477b74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
mov dword [esp + 0x20], ebx
je 0x451642
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x451610
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401b80
mov edi, dword [esp + 0x14]
push edi
call fcn.00451360
mov edx, dword [esp + 0x34]
add esp, 4
cmp eax, edx
setb al
cmp al, bl
je 0x451749
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x45167f
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x13]
push eax
mov ecx, esi
call fcn.00402080
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45172a
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, esi
or eax, ecx
jge 0x4516a0
push esi
lea ecx, [esp + 0x18]
call fcn.004016e0
mov edi, dword [esp + 0x14]
push edi
push esi
call ebp
cmp edi, ebx
jne 0x4516ac
xor eax, eax
jmp 0x4516c0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4516b1
sub eax, edx
js 0x45185d
cmp eax, dword [edi - 8]
jg 0x45185d
mov dword [edi - 0xc], eax
push edi
mov byte [eax + edi], bl
call fcn.00451360
mov esi, dword [esp + 0x34]
add esp, 4
cmp eax, esi
jae 0x451749
lea eax, [esp + 0x14]
push eax
call fcn.00451560
mov edi, dword [esp + 0x18]
add esp, 4
test al, al
je 0x451702
push edi
call fcn.00451360
add esp, 4
cmp eax, esi
jae 0x451749
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x13]
push ecx
mov ecx, esi
call fcn.00402080
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call fcn.00477b74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x20], 1
jge 0x451789
push 0x104
lea ecx, [esp + 0x30]
call fcn.004016e0
mov esi, dword [esp + 0x2c]
push esi
push ebx
push 0x494e30
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x451800
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
call fcn.00402080
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp esi, ebx
jne 0x451808
xor eax, eax
jmp 0x45181b
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451810
sub eax, edx
js 0x45185d
cmp eax, dword [esi - 8]
jg 0x45185d
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
add esi, 0xfffffff0
push esi
call fcn.00401730
mov ebp, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x20], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4517c9
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
jmp 0x4517c6
push 0x80070057
call fcn.00401110
int3