Function at 0x481c00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e6a94
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, dword [esp + 0x448]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], esi
mov dword [esi], 0x4ed20c
lea eax, [esp + 0x24]
mov dword [esp + 0x440], 0
push eax
push 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
or edi, 0xffffffff
test ebx, ebx
je 0x481d66
push 0x104
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x481cc3
cmp eax, 0x104
jae 0x481cc3
push eax
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00407d20
add esp, 0xc
mov edx, eax
lea ebx, [edi + 4]
jmp 0x481cdd
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00407d20
add esp, 0xc
mov edx, eax
mov ebx, 5
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [edx], ecx
test bl, 4
je 0x481d22
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x481d15
cmp ecx, 0xffffffff
je 0x481d22
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x481d22
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov dword [esp + 0x440], 0
test bl, 2
je 0x481d66
mov eax, dword [esp + 0x10]
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x481d59
cmp ecx, 0xffffffff
je 0x481d66
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x481d66
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x481dd6
mov ebx, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.00419c00
test al, al
je 0x481d91
push 1
mov ecx, esi
call fcn.00419550
jmp 0x481d73
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004645f0
mov ecx, dword [esi]
mov edx, eax
add esp, 8
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x481dc9
cmp ecx, 0xffffffff
je 0x481dd6
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x481dd6
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x481e2b
push 6
lea eax, [esp + 0x14]
push str.C:_tmp
push eax
call fcn.004102e0
mov ecx, dword [esi]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x481e1c
cmp ecx, 0xffffffff
je 0x481e6a
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x481e6a
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x481e6a
cmp eax, 2
jl 0x481e6a
cmp eax, 1
jle 0x481e6a
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
jne 0x481e6a
mov ax, word [ecx + eax]
movzx ecx, ax
call fcn.0041d900
mov word [esp + 0x10], ax
lea ecx, [esp + 0x18]
push dword [esp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
call fcn.0048da80
mov eax, esi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004c17c4
add esp, 0x434
ret