Function at 0x40b9f4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.0044f6d0
mov eax, dword [0x4a3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
mov ebx, ecx
mov esi, edx
push 0
push ebx
mov dword [ebp - 0x1214], ebx
mov byte [esi], 0
call fcn.00444cd0
add esp, 0xc
call fcn.0040b974
test al, al
je 0x40ba39
mov byte [esi], 1
jmp 0x40bc5b
mov ebx, str.cidprov32.dll
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrNCatW]
mov dword [ebp - 0x1218], eax
test eax, eax
jne 0x40bb37
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00444cd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
xor ecx, ecx
call fcn.0041bf89
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bbfc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1218], eax
test eax, eax
push str.__s._d_
lea eax, [ebp - 0x1210]
push eax
jne 0x40bb02
call esi
push 0x800
push str.load__s_failed:__d
lea eax, [ebp - 0x1210]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x68
push str..deviceid.cpp
lea eax, [ebp - 0x1210]
push eax
push 0
call sym.gxbus32.exe_E7248975
add esp, 0x18
jmp 0x40bbfc
call esi
mov ebx, 0x800
push ebx
push str.load__s_ok
lea eax, [ebp - 0x1210]
push eax
call edi
push str.cidprov32.dll
push 0x6a
push str..deviceid.cpp
lea eax, [ebp - 0x1210]
push eax
push 0
call sym.gxbus32.exe_E7248971
add esp, 0x14
jmp 0x40bb3c
mov ebx, 0x800
push str.DicEtareneg
push dword [ebp - 0x1218]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bbc7
push 0x40
push dword [ebp - 0x1214]
call eax
push dword [ebp - 0x1214]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x10
push str.__s._d_
lea eax, [ebp - 0x1210]
push eax
jne 0x40bb96
call esi
push ebx
push str.cid_from_cidprov:__hs
lea eax, [ebp - 0x1210]
push eax
call edi
push dword [ebp - 0x1214]
push 0x75
jmp 0x40bc45
call esi
push ebx
push str.cid_provider_returned_invalid_cid:__hs
lea eax, [ebp - 0x1210]
push eax
call edi
push dword [ebp - 0x1214]
lea eax, [ebp - 0x1210]
push 0x78
push str..deviceid.cpp
push eax
push 0
call sym.gxbus32.exe_E7248975
add esp, 0x14
jmp 0x40bbfc
push str.__s._d_
lea eax, [ebp - 0x1210]
push eax
call esi
push ebx
push str.invalid_cid_provider:_DicEtareneg_not_found
lea eax, [ebp - 0x1210]
push eax
call edi
push 0x7a
push str..deviceid.cpp
lea eax, [ebp - 0x1210]
push eax
push 0
call sym.gxbus32.exe_E7248975
add esp, 0x10
call fcn.0041c358
push eax
call fcn.0041c358
push eax
push str._08x_08x
push dword [ebp - 0x1214]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.__s._d_
lea eax, [ebp - 0x1210]
push eax
call esi
push 0x800
push str.random_cid:__hs
lea eax, [ebp - 0x1210]
push eax
call edi
push dword [ebp - 0x1214]
push 0x7f
push str..deviceid.cpp
lea eax, [ebp - 0x1210]
push eax
push 0
call sym.gxbus32.exe_E7248971
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044302b
leave
ret