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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d9a3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x58f070]
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.004e0560
test al, al
je 0x4182e8
push str.OOBEPDApp
lea ecx, [ebp - 0x28]
call fcn.00412840
push 0xd
xor eax, eax
mov dword [ebp - 0x3c], 7
push str.P7IMSLib.dll
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
call fcn.00412ae0
push ecx
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004e0b60
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x418337
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004132e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4187be
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 0x4187be
cmp dword [edi], 0
jne 0x4183c6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x4183c6
mov eax, fcn.0042a940
test eax, eax
je 0x4187f6
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 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0x28
jmp 0x4187ee
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183de
push str.IMS_createRefExWithXMLParams
push eax
call esi
mov ecx, eax
mov dword [edi + 4], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x4183f3
push str.IMS_registerClientToGroup
push eax
call esi
mov ecx, eax
mov dword [edi + 8], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x418408
push str.IMS_setProxyCredentialsInIMSLibSession
push eax
call esi
mov ecx, eax
mov dword [edi + 0x10], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x41841d
push str.IMS_fetchDefaultUserInfoForClientId
push eax
call esi
mov ecx, eax
mov dword [edi + 0x18], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x418432
push str.IMS_fetchAccessToken2
push eax
call esi
mov ecx, eax
mov dword [edi + 0x1c], ecx
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x418447
push str.IMS_fetchIDPResponseForKey
push eax
call esi
mov ecx, eax
mov dword [edi + 0x24], ecx
xor eax, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x41845a
push str.IMS_getDeviceID
push ecx
call esi
mov dword [edi + 0x20], eax
xor ecx, ecx
mov eax, dword [edi]
test eax, eax
je 0x41846f
push str.IMS_releaseData
push eax
call esi
mov ecx, eax
mov dword [edi + 0x28], ecx
xor eax, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x418482
push str.IMS_releaseRef
push ecx
call esi
cmp dword [edi + 4], 0
mov dword [edi + 0xc], eax
je 0x41878c
cmp dword [edi + 8], 0
je 0x41878c
cmp dword [edi + 0x10], 0
je 0x41878c
cmp dword [edi + 0x18], 0
je 0x41878c
cmp dword [edi + 0x1c], 0
je 0x41878c
cmp dword [edi + 0x24], 0
je 0x41878c
cmp dword [edi + 0x28], 0
je 0x41878c
test eax, eax
je 0x41878c
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.004dc690
push str._pwaArgs__
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00412950
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x38]
call fcn.004dcc80
lea ecx, [ebp - 0x68]
call fcn.00412890
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x38]
call fcn.004de750
push 0x55df74
lea ecx, [ebp - 0x50]
call fcn.00412950
push str.LEID
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00412950
push ecx
mov eax, esp
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2c]
mov dword [eax], esi
test esi, esi
je 0x41855e
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x38]
call fcn.004def20
lea ecx, [ebp - 0x68]
call fcn.00412890
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00412890
push str._ac_:_CCDesktop_app___av_:_3.9.0.327_
lea ecx, [ebp - 0x98]
call fcn.00412950
push str.userAgent
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00412950
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x4185b6
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 - 0x38]
call fcn.004def20
lea ecx, [ebp - 0x68]
call fcn.00412890
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x38]
call fcn.004df690
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
push eax
mov eax, dword [edi + 4]
push 0
call eax
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
jne 0x418647
mov eax, fcn.0042a940
test eax, eax
je 0x4186af
push str.Failed_in_creating_IMSLib_reference_in_openIMSLibSessionWithXMLParams
push 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0x28
call fcn.0042a940
add esp, 0x18
xor bl, bl
jmp 0x418761
push ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x68]
call fcn.004dbc00
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x418662
mov eax, dword [eax]
push 0
push eax
push dword [edi + 0x14]
mov eax, dword [edi + 8]
call eax
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
mov ebx, eax
call fcn.00405ea0
test ebx, ebx
je 0x4186b6
mov eax, fcn.0042a940
test eax, eax
je 0x4186af
push ebx
push str.Failed_to_register_client_ID_to_buddy_group_of_AAM._Error:__d
push 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0x28
call fcn.0042a940
add esp, 0x1c
xor bl, bl
jmp 0x418761
call fcn.0042a9a0
cmp dword [eax + 0x28], 0
sete al
test al, al
jne 0x41875f
call fcn.0042a9a0
push ecx
lea ecx, [ebp - 0x68]
lea edx, [eax + 0x18]
call fcn.004dbc00
push ecx
mov byte [ebp - 4], 0xc
call fcn.0042a9a0
add esp, 4
lea ecx, [ebp - 0x50]
lea edx, [eax + 0x30]
call fcn.004dbc00
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x68]
push 0
cmovae ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x54], 0x10
push ecx
cmovae eax, dword [ebp - 0x68]
push eax
push dword [edi + 0x14]
mov eax, dword [edi + 0x10]
call eax
add esp, 0x10
test eax, eax
je 0x41874f
mov eax, fcn.0042a940
test eax, eax
je 0x41874f
push str.Failed_to_setProxyCredentials_for_the_IMSLib_session_in_SetProxyCredentialsInIMSLibSession_function_of_IMSLib_
push 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0x28
call fcn.0042a940
add esp, 0x18
lea ecx, [ebp - 0x50]
call fcn.00405ea0
lea ecx, [ebp - 0x68]
call fcn.00405ea0
mov bl, 1
lea ecx, [ebp - 0x80]
call fcn.00405ea0
lea ecx, [ebp - 0x98]
call fcn.00412890
mov byte [ebp - 4], 3
test esi, esi
je 0x418782
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x38]
call fcn.004dc700
jmp 0x4187f8
mov eax, fcn.0042a940
test eax, eax
je 0x4187f6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Invalid_IMSLib_at_path:_s
push 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0x28
jmp 0x4187ee
mov eax, fcn.0042a940
test eax, eax
je 0x4187f6
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 0x55c340
push 0x55c340
push str.IMSUserProfile
push str.Bootstrapper
push 0xa
call fcn.0042a940
add esp, 0x1c
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41880d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
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 0x418836
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004132e0
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.0050ce8d
mov esp, ebp
pop ebp
ret 0x18