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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c173b
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.0051d8d0
push 0xe
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x5fb6c4
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.0051de40
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42e626
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 0x42e670
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 0x42e670
mov ebx, fcn.00440ae0
test ebx, ebx
je 0x42e76c
push str.IMSLib_found_in_LCC_Package
jmp 0x42e74e
mov ebx, fcn.00440ae0
test ebx, ebx
je 0x42e6a8
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.00440ae0
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.0051d6c0
test al, al
je 0x42e6c1
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.0051de40
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42e710
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 0x42eb92
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 0x42eb92
test ebx, ebx
je 0x42e76c
push str.IMSLib_found_in_P7_Package
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0xa
call fcn.00440ae0
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0052a330
test al, al
jne 0x42e7af
test ebx, ebx
je 0x42ebc5
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 0x42ebbd
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e7c7
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 0x42e7dc
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 0x42e7f1
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 0x42e806
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 0x42e81b
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 0x42e830
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 0x42e843
push str.IMS_getDeviceID
push ecx
call esi
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x42e858
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 0x42e86b
push str.IMS_releaseRef
push ecx
call esi
cmp dword [edi + 0x34], 0
mov dword [edi + 0x3c], eax
je 0x42eb65
cmp dword [edi + 0x38], 0
je 0x42eb65
cmp dword [edi + 0x40], 0
je 0x42eb65
cmp dword [edi + 0x4c], 0
je 0x42eb65
cmp dword [edi + 0x50], 0
je 0x42eb65
cmp dword [edi + 0x58], 0
je 0x42eb65
cmp dword [edi + 0x5c], 0
je 0x42eb65
test eax, eax
je 0x42eb65
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x50], xmm0
call fcn.005212e0
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.005218d0
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.00523c50
push 0x5fb9e4
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 0x42e947
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.00524aa0
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.7.0.400_
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 0x42e99f
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.00524aa0
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.00525500
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 0x42ea2c
test ebx, ebx
je 0x42ea9a
push str.Failed_in_creating_IMSLib_reference_in_openIMSLibSessionWithXMLParams
push 0x5f8398
push 0x5f8398
push str.IMSUserProfile
push 0x5f8398
push 0x28
call fcn.00440ae0
add esp, 0x18
xor bl, bl
jmp 0x42eb3a
push 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.0051c8f0
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x42ea48
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 0x42eaa1
test ebx, ebx
je 0x42ea9a
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.00440ae0
add esp, 0x1c
xor bl, bl
jmp 0x42eb3a
cmp dword [edi + 0x14], 0
lea edx, [edi + 4]
sete al
test al, al
jne 0x42eb38
push 0
lea ecx, [ebp - 0x68]
call fcn.0051c8f0
add esp, 4
push 0
lea edx, [edi + 0x1c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
call fcn.0051c8f0
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 0x42eb28
test ebx, ebx
je 0x42eb28
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.00440ae0
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 0x42eb5b
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x50]
call fcn.00521350
jmp 0x42ebc7
test ebx, ebx
je 0x42ebc5
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 0x42ebbd
test ebx, ebx
je 0x42ebc5
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.00440ae0
add esp, 0x1c
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42ebdc
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 0x42ec05
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.0057608a
mov esp, ebp
pop ebp
ret 0x18