Function at 0x506a10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5affab
mov eax, dword fs:[0]
push eax
mov eax, 0x141c
call fcn.00587f10
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push eax
call fcn.005877c0
add esp, 0xc
lea eax, [ebp - 0xc10]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.005877c0
add esp, 0xc
lea eax, [ebp - 0x410]
push 0
push 0
push 0x400
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.00587dd0
add esp, 8
test eax, eax
je 0x506ae1
lea ecx, [ebp - 0x410]
sub eax, ecx
cmp eax, 0x400
jae 0x506b09
mov byte [ebp + eax - 0x410], 0
cmp byte [ebp - 0x410], 0
mov dword [ebp - 0x1414], 0xf
mov dword [ebp - 0x1418], 0
mov byte [ebp - 0x1428], 0
jne 0x506b0e
xor ecx, ecx
jmp 0x506b20
call fcn.005862b0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x506b17
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x1428]
call fcn.004082e0
push 1
push 0x5e0864
lea ecx, [ebp - 0x1428]
mov dword [ebp - 4], 0
call fcn.00414c60
xor ecx, ecx
cmp byte [str.IMSLib.dll], cl
mov eax, 0xa
cmove eax, ecx
push eax
push str.IMSLib.dll
lea ecx, [ebp - 0x1428]
call fcn.00414c60
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1410], ax
lea eax, [ebp - 0x140e]
push eax
call fcn.005877c0
add esp, 0xc
cmp dword [ebp - 0x1414], 0x10
push 0x400
lea ecx, [ebp - 0x1410]
push ecx
push dword [ebp - 0x1418]
lea eax, [ebp - 0x1428]
cmovae eax, dword [ebp - 0x1428]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62f870], eax
test eax, eax
jne 0x506bfa
push str.Failed_to_load_imslib.dll
push dword [0x61acf8]
push 4
push str.IMSLibWrapper
push dword [0x62f86c]
call fcn.00525c50
add esp, 0x14
jmp 0x506cfc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IMS_createRefExWithXMLParams
push eax
call esi
push str.IMS_releaseRef
push dword [0x62f870]
mov dword [0x62f874], eax
call esi
push str.IMS_fetchAccessToken
push dword [0x62f870]
mov dword [0x62f878], eax
call esi
push str.IMS_fetchContinueToken
push dword [0x62f870]
mov dword [0x62f87c], eax
call esi
push str.IMS_setProxyCredentialsInIMSLibSession
push dword [0x62f870]
mov dword [0x62f880], eax
call esi
cmp dword [0x62f874], 0
mov dword [0x62f884], eax
je 0x506cac
cmp dword [0x62f878], 0
je 0x506cac
cmp dword [0x62f87c], 0
je 0x506cac
test eax, eax
je 0x506cac
cmp dword [0x62f880], 0
je 0x506cac
push str.All_function_pointers_successfully_retrieved
push dword [0x61acf8]
push 4
push str.IMSLibWrapper
push dword [0x62f86c]
call fcn.00525c50
add esp, 0x14
lea ecx, [ebp - 0x1428]
call fcn.00407f30
mov al, 1
jmp 0x506d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Last_error_is_:__d
push dword [0x61acf8]
push 4
push str.IMSLibWrapper
push dword [0x62f86c]
call fcn.00525c50
push str.Failed_to_get_function_pointers_from_new_lib
push dword [0x61acf8]
push 4
push str.IMSLibWrapper
push dword [0x62f86c]
call fcn.00525c50
add esp, 0x2c
push dword [0x62f870]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1414], 0x10
jb 0x506d13
push dword [ebp - 0x1428]
call fcn.0058603b
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret