Function at 0x406730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b21f2
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x4e83f4]
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 esi, ecx
push 0x208
lea eax, [ebp - 0x218]
xor bl, bl
push 0
push eax
mov byte [ebp - 0x219], bl
call fcn.0046c7a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi + 4]
test eax, eax
js 0x4067b3
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
nop
dec dword [esi + 4]
lea eax, [ebp - 0x218]
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
jns 0x4067a0
dec eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x218]
push str.independent_product.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4068d8
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4068d1
push 0x53
push str.d:_buildlib_commonpublicincludeindependent_productindependent_product_helper.h
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
call fcn.00408180
mov byte [ebp - 4], 1
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x72
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004046f0
mov esi, eax
push str.path_:
push esi
mov byte [ebp - 4], 2
call fcn.00405680
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00403a80
push str.__is_not_exist
push esi
call fcn.00405680
mov edx, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.004057a0
lea ecx, [ebp - 0x234]
call fcn.004050d0
lea ecx, [ebp - 0x24c]
call fcn.004050d0
mov al, bl
jmp 0x4069e4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x4069e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0043cc60
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x4069da
push 0x53
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 0x27c], cl
lea ecx, [ebp - 0x27c]
push str.d:_buildlib_commonpublicincludeindependent_productindependent_product_helper.h
mov dword [ebp - 0x268], 0xf
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 3
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
call fcn.00408180
mov byte [ebp - 4], 4
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x79
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004046f0
mov esi, eax
push str.load_dll_failed__err:
push esi
mov byte [ebp - 4], 5
call fcn.00405680
add esp, 8
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.004057a0
lea ecx, [ebp - 0x264]
call fcn.004050d0
lea ecx, [ebp - 0x27c]
call fcn.004050d0
mov al, byte [ebp - 0x219]
jmp 0x4069e4
mov al, 1
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.004395be
mov esp, ebp
pop ebp
ret