Function at 0x4619a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd3b4
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x218], cx
call fcn.004a52f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ecx
mov ebx, esp
mov dword [ebp - 0x22c], esp
mov dword [ebp - 0x228], ebx
call fcn.004964ca
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x461a3b
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, 0x4ca098
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x461b42
mov edx, ecx
movzx esi, dx
push esi
call fcn.0049e3ee
mov edi, eax
test edi, edi
je 0x461b5c
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x461b5c
push esi
push eax
push edi
call fcn.004216e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x461b5c
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x461ac4
push esi
mov ecx, ebx
call fcn.004214ff
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x220], edx
cmp eax, 0xffffffff
jne 0x461ae1
push edi
call fcn.004a4b1a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.004a460f
add esp, 0x10
cmp eax, 0x50
ja case.0x461c76.1
movzx edx, byte [eax + 0x461d30]
jmp dword [edx*4 + 0x461d20]
call fcn.00496a32
test esi, esi
jl 0x461b38
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x461b38
mov edx, dword [ebp - 0x21c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x461b5c
push 0x80070057
call fcn.00421000
push 0x4ca098
call fcn.004a4b1a
add esp, 4
push eax
push 0x4ca098
mov ecx, ebx
call fcn.00423f4a
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov esi, esp
push eax
call fcn.00423fbb
add eax, 0x10
mov dword [esi], eax
mov ebx, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x230], ebx
call fcn.004964ca
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x461ba6
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x461ca8
mov edx, ecx
movzx esi, dx
push esi
call fcn.0049e3ee
mov edi, eax
test edi, edi
je 0x461cc6
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x461cc6
push esi
push eax
push edi
call fcn.004216e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x461cc6
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x461c30
push esi
mov ecx, ebx
call fcn.004214ff
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x21c], edx
cmp eax, 0xffffffff
jne 0x461c4d
push edi
call fcn.004a4b1a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004a460f
add esp, 0x10
cmp eax, 0x50
ja case.0x461c76.1
movzx edx, byte [eax + 0x461d94]
jmp dword [edx*4 + 0x461d84]
call fcn.00496a6a
test esi, esi
jl 0x461b38
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x461b38
mov edx, dword [ebp - 0x220]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x461cc6
lea eax, [ebp - 0x218]
push eax
call fcn.004a4b1a
add esp, 4
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, ebx
call fcn.00423f4a
mov edi, dword [ebp - 0x224]
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
call fcn.00461df0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x461d02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4220
mov esp, ebp
pop ebp
ret