Function at 0x42e810
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x64a070]
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 edi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0051e240
push 0xe
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x5fb6ec
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00408a10
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42e8b6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x42e900
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
jne 0x42e900
mov ebx, fcn.00440db0
test ebx, ebx
je 0x42e9fc
push str.IMSLib_found_in_LCC_Package
jmp 0x42e9de
mov ebx, fcn.00440db0
test ebx, ebx
je 0x42e938
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.IMSLib_does_not_exist_at_path:__s._Checking_with_fallback_path_in_P7.
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0xa
call fcn.00440db0
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.0051e030
test al, al
je 0x42e951
push str.OOBEPDApp
lea ecx, [ebp - 0x28]
call fcn.0040c4b0
push 0xd
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.P7IMSLib.dll
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00408a10
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42e9a0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409510
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x42ee22
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
jne 0x42ee22
test ebx, ebx
je 0x42e9fc
push str.IMSLib_found_in_P7_Package
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0xa
call fcn.00440db0
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0052ab10
test al, al
jne 0x42ea3f
test ebx, ebx
je 0x42ee55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_load_IMSLib_at_path:_s
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
jmp 0x42ee4d
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ea57
push str.IMS_createRefExWithXMLParams
push eax
call esi
mov ecx, eax
mov dword [edi + 0x34], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42ea6c
push str.IMS_registerClientToGroup
push eax
call esi
mov ecx, eax
mov dword [edi + 0x38], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42ea81
push str.IMS_setProxyCredentialsInIMSLibSession
push eax
call esi
mov ecx, eax
mov dword [edi + 0x40], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42ea96
push str.IMS_fetchDefaultUserInfoForClientId
push eax
call esi
mov ecx, eax
mov dword [edi + 0x4c], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42eaab
push str.IMS_fetchAccessToken2
push eax
call esi
mov ecx, eax
mov dword [edi + 0x50], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42eac0
push str.IMS_fetchIDPResponseForKey
push eax
call esi
mov ecx, eax
mov dword [edi + 0x58], ecx
xor eax, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x42ead3
push str.IMS_getDeviceID
push ecx
call esi
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42eae8
push str.IMS_releaseData
push eax
call esi
mov ecx, eax
mov dword [edi + 0x5c], ecx
xor eax, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x42eafb
push str.IMS_releaseRef
push ecx
call esi
cmp dword [edi + 0x34], 0
mov dword [edi + 0x3c], eax
je 0x42edf5
cmp dword [edi + 0x38], 0
je 0x42edf5
cmp dword [edi + 0x40], 0
je 0x42edf5
cmp dword [edi + 0x4c], 0
je 0x42edf5
cmp dword [edi + 0x50], 0
je 0x42edf5
cmp dword [edi + 0x58], 0
je 0x42edf5
cmp dword [edi + 0x5c], 0
je 0x42edf5
test eax, eax
je 0x42edf5
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x50], xmm0
call fcn.00521ac0
push str._pwaArgs__
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00408810
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x50]
call fcn.005220c0
lea ecx, [ebp - 0x68]
call fcn.004087d0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x50]
call fcn.00524440
push 0x5fba0c
lea ecx, [ebp - 0x40]
call fcn.00408810
push str.LEID
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00408810
push ecx
mov eax, esp
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x44]
mov dword [eax], esi
test esi, esi
je 0x42ebd7
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.00525290
lea ecx, [ebp - 0x68]
call fcn.004087d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004087d0
push str._ac_:_CCDesktop_app___av_:_4.8.0.421_
lea ecx, [ebp - 0x98]
call fcn.00408810
push str.userAgent
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00408810
mov byte [ebp - 4], 0xa
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x42ec2f
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.00525290
lea ecx, [ebp - 0x68]
call fcn.004087d0
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x50]
call fcn.00525ce0
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x34]
call eax
add esp, 8
mov dword [edi + 0x48], eax
test eax, eax
jne 0x42ecbc
test ebx, ebx
je 0x42ed2a
push str.Failed_in_creating_IMSLib_reference_in_openIMSLibSessionWithXMLParams
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
call fcn.00440db0
add esp, 0x18
xor bl, bl
jmp 0x42edca
push 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.0051ced0
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x42ecd8
mov eax, dword [eax]
push 0
push eax
push dword [edi + 0x48]
mov eax, dword [edi + 0x38]
call eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xb
call fcn.00408870
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x42ed31
test ebx, ebx
je 0x42ed2a
push eax
push str.Failed_to_register_client_ID_to_buddy_group_of_AAM._Error:__d
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
call fcn.00440db0
add esp, 0x1c
xor bl, bl
jmp 0x42edca
cmp dword [edi + 0x14], 0
lea edx, [edi + 4]
sete al
test al, al
jne 0x42edc8
push 0
lea ecx, [ebp - 0x68]
call fcn.0051ced0
add esp, 4
push 0
lea edx, [edi + 0x1c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
call fcn.0051ced0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x68]
push 0
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x54], 0x10
push ecx
cmovae eax, dword [ebp - 0x68]
push eax
push dword [edi + 0x48]
mov eax, dword [edi + 0x40]
call eax
add esp, 0x10
test eax, eax
je 0x42edb8
test ebx, ebx
je 0x42edb8
push str.Failed_to_setProxyCredentials_for_the_IMSLib_session_in_SetProxyCredentialsInIMSLibSession_function_of_IMSLib_
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
call fcn.00440db0
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.00408870
lea ecx, [ebp - 0x68]
call fcn.00408870
mov bl, 1
lea ecx, [ebp - 0x80]
call fcn.00408870
lea ecx, [ebp - 0x98]
call fcn.004087d0
mov byte [ebp - 4], 4
test esi, esi
je 0x42edeb
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x50]
call fcn.00521b30
jmp 0x42ee57
test ebx, ebx
je 0x42ee55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Invalid_IMSLib_at_path:_s
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
jmp 0x42ee4d
test ebx, ebx
je 0x42ee55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.IMSLib_does_not_exist_at_path:__s
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0xa
call fcn.00440db0
add esp, 0x1c
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42ee6c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x42ee95
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00409510
mov al, bl
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.005765b2
mov esp, ebp
pop ebp
ret 0x18