Function at 0x4bf950
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x598084
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
push str.deviceid.ini
call fcn.00403fa0
push eax
push 0x65fa18
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x18]
push eax
mov ecx, 0x65fa18
call fcn.004066b0
xor esi, esi
mov dword [esp + 0x18c], esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bf9ec
mov dword [esp + 0x18c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bf9e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4bfea9
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], esi
call fcn.0049ce82
add esp, 0xc
test eax, eax
jne 0x4bfa3b
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4bfa1a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x18c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4bf9d9
mov edx, dword [esp + 0x1c]
push 3
lea ecx, [esp + 0x84]
push edx
lea eax, [esp + 0x84]
mov dword [esp + 0x84], ecx
call fcn.00410760
lea eax, [esp + 0x14]
mov byte [esp + 0x18c], 1
mov ecx, dword [esp + 0x7c]
push eax
call fcn.004066b0
mov byte [esp + 0x18c], 3
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x4bfa92
push eax
call fcn.004f6d01
add esp, 4
lea edx, [esp + 0x34]
push edx
call fcn.0048dda0
mov byte [esp + 0x18c], 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x4bfbda
test eax, eax
jl 0x4bfbcd
push 0x5dc3c0
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x4bfbcd
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4bfbcd
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
call fcn.004098d0
mov ebx, eax
lea edi, [esp + 0x34]
mov byte [esp + 0x18c], 5
call fcn.0042d130
mov byte [esp + 0x18c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfb2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 2]
lea esi, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0040cf10
mov byte [esp + 0x18c], 6
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4bfb94
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4bfb87
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4bfb87
call fcn.004073f0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4bfb7e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4bfb94
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004072f0
mov byte [esp + 0x18c], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfbbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x4bfab5
jmp 0x4bfbda
lea ebx, [esp + 0x14]
lea edi, [esp + 0x34]
call fcn.0042d130
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
cmp eax, ecx
jbe 0x4bfbf7
call fcn.004f825e
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x68], edx
mov esi, eax
cmp eax, ecx
jbe 0x4bfc0a
call fcn.004f825e
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], edi
xor ebx, ebx
mov dword [esp + 0x2c], esi
cmp edi, ebx
je 0x4bfc22
cmp edi, dword [esp + 0x68]
je 0x4bfc27
call fcn.004f825e
cmp esi, dword [esp + 0x24]
je 0x4bfe0b
cmp edi, ebx
jne 0x4bfe00
call fcn.004f825e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4bfc4a
call fcn.004f825e
mov eax, dword [esi]
sub eax, 0x10
call fcn.004073f0
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x18c], 7
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4bfdbf
jl 0x4bfdbf
push 0x5d9aac
push ebp
call fcn.004f7373
add esp, 8
cmp eax, ebx
je 0x4bfdbf
sub eax, ebp
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4bfdbf
lea ecx, [ebx + 1]
lea esi, [esp + 0x30]
lea edx, [esp + 0x20]
call fcn.0040cf10
mov edi, eax
mov byte [esp + 0x18c], 8
call fcn.0042ca00
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x5c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x24]
mov byte [esp + 0x190], 9
call fcn.004098d0
mov edi, eax
mov byte [esp + 0x190], 0xa
call fcn.0042ca00
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x6c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x64]
mov byte [esp + 0x194], 0xb
call fcn.0040e180
add esp, 8
lea ecx, [esp + 0x50]
push ecx
mov edi, eax
mov byte [esp + 0x190], 0xc
call fcn.0040e220
mov eax, dword [esp + 0x194]
lea edx, [esp + 0x50]
push edx
add eax, 0xfc
push eax
lea ebx, [esp + 0x78]
mov byte [esp + 0x194], 0xd
call fcn.0040d310
lea esi, [esp + 0x50]
call fcn.004bac70
lea esi, [esp + 0x5c]
call fcn.004bac70
mov byte [esp + 0x18c], 8
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfd8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18c], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfdb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
lea eax, [ebp - 0x10]
mov byte [esp + 0x18c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfde3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4bfe07
call fcn.004f825e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4bfdf8
call fcn.004f825e
add esi, 4
jmp 0x4bfc12
mov eax, dword [edi]
jmp 0x4bfc40
mov eax, dword [edi]
jmp 0x4bfdee
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4bfe1a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4bfe38
mov edi, dword [esp + 0x44]
call fcn.004075a0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004f6734
mov byte [esp + 0x190], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfe79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4