Function at 0x4855d5
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x998
mov eax, dword [0x619e70]
xor eax, esp
mov dword [esp + 0x994], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x108]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x485605
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x994]
xor ecx, esp
call fcn.0057db4c
add esp, 0x998
ret
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c], ebx
je 0x4855ec
mov dword [esi + 0x110], ebx
lea eax, [esi + 0x4fc]
mov ecx, 0xfa
mov edi, edi
mov dword [eax - 0x3e8], ebx
mov dword [eax], ebx
add eax, 4
sub ecx, 1
jne 0x485620
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.atiadlxx.dll
call edi
mov dword [esi + 0x10c], eax
cmp eax, ebx
jne 0x485656
push str.atiadlxy.dll
call edi
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x485f35
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ADL_Main_Control_Create
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Main_Control_Destroy
push ecx
mov dword [esi + 0x10b4], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Adapter_NumberOfAdapters_Get
push edx
mov dword [esi + 0x10b8], eax
call edi
mov dword [esi + 0x10bc], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Adapter_AdapterInfo_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Adapter_Active_Get
push ecx
mov dword [esi + 0x10c0], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Display_ColorCaps_Get
push edx
mov dword [esi + 0x10c4], eax
call edi
mov dword [esi + 0x10c8], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Display_Color_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Display_Color_Set
push ecx
mov dword [esi + 0x10cc], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Display_DisplayInfo_Get
push edx
mov dword [esi + 0x10d0], eax
call edi
mov dword [esi + 0x10d4], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Adapter_MemoryInfo_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Adapter_MemoryInfo3_Get
push ecx
mov dword [esi + 0x10d8], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Adapter_ClockInfo_Get
push edx
mov dword [esi + 0x10dc], eax
call edi
mov dword [esi + 0x10e0], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_Main_Control_Create
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL2_Main_Control_Destroy
push ecx
mov dword [esi + 0x10e4], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL2_Adapter_Active_Get
push edx
mov dword [esi + 0x10e8], eax
call edi
mov dword [esi + 0x10ec], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_Adapter_PMLog_Support_Get
push eax
call edi
mov dword [esi + 0x10f0], eax
push str.ADL2_Adapter_PMLog_Start
mov ecx, dword [esi + 0x10c]
push ecx
call edi
mov edx, dword [esi + 0x10c]
push str.ADL2_Adapter_PMLog_Stop
push edx
mov dword [esi + 0x10f4], eax
call edi
mov dword [esi + 0x10f8], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_Desktop_Device_Create
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL2_Desktop_Device_Destroy
push ecx
mov dword [esi + 0x10fc], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL2_New_QueryPMLogData_Get
push edx
mov dword [esi + 0x1100], eax
call edi
mov dword [esi + 0x1104], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_Adapter_VideoBiosInfo_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL2_Adapter_Graphic_Core_Info_Get
push ecx
mov dword [esi + 0x1108], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Overdrive5_Temperature_Get
push edx
mov dword [esi + 0x110c], eax
call edi
mov dword [esi + 0x1110], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Overdrive5_FanSpeedInfo_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Overdrive5_FanSpeed_Get
push ecx
mov dword [esi + 0x1114], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Overdrive5_CurrentActivity_Get
push edx
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Overdrive5_ODParameters_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Overdrive5_ODPerformanceLevels_Get
push ecx
mov dword [esi + 0x1120], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL_Overdrive5_PowerControl_Get
push edx
mov dword [esi + 0x1124], eax
call edi
mov dword [esi + 0x1128], eax
mov eax, dword [esi + 0x10c]
push str.ADL_Overdrive6_CurrentStatus_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL_Overdrive6_FanSpeed_Get
push ecx
mov dword [esi + 0x112c], eax
call edi
mov edx, dword [esi + 0x10c]
mov dword [esi + 0x1130], eax
push str.ADL2_Overdrive6_CurrentPower_Get
push edx
call edi
mov dword [esi + 0x1134], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_Overdrive8_Init_Setting_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL2_Overdrive8_Init_SettingX2_Get
push ecx
mov dword [esi + 0x1138], eax
call edi
mov edx, dword [esi + 0x10c]
push str.ADL2_OverdriveN_Capabilities_Get
push edx
mov dword [esi + 0x113c], eax
call edi
mov dword [esi + 0x1140], eax
mov eax, dword [esi + 0x10c]
push str.ADL2_OverdriveN_CapabilitiesX2_Get
push eax
call edi
mov ecx, dword [esi + 0x10c]
push str.ADL2_OverdriveN_PowerLimit_Get
push ecx
mov dword [esi + 0x1144], eax
call edi
mov dword [esi + 0x1148], eax
mov eax, dword [esi + 0x10b4]
cmp eax, ebx
je 0x485f35
push 1
push 0x485120
call eax
add esp, 8
test eax, eax
jne 0x485f35
mov ecx, dword [esi + 0x10bc]
mov dword [esp + 0x10], eax
cmp ecx, ebx
je 0x48599a
lea edx, [esp + 0x10]
push edx
call ecx
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esi + 0x10e4]
cmp ecx, ebx
je 0x4859bb
lea eax, [esi + 0x110]
push eax
push 1
push 0x485120
call ecx
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
jle 0x485f29
imul eax, eax, 0x624
push eax
mov dword [esp + 0x18], 1
call fcn.0057ed3b
mov ebp, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x624
push eax
push ebx
push ebp
mov dword [esp + 0x2c], ebp
call fcn.0057f470
mov eax, dword [esi + 0x10c0]
add esp, 0x10
cmp eax, ebx
je 0x485a0d
mov ecx, dword [esp + 0x10]
imul ecx, ecx, 0x624
push ecx
push ebp
call eax
add esp, 8
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
jle 0x485f1a
lea ebx, [ebp + 0x110]
mov dword [esp + 0x18], ebx
jmp 0x485a30
mov eax, dword [esi + 0x10c4]
mov edi, dword [ebx - 0x10c]
test eax, eax
je 0x485efd
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x30], 0
call eax
add esp, 8
test eax, eax
jne 0x485efd
mov eax, dword [ebx]
mov ecx, dword [ebx - 4]
mov edx, dword [ebx - 8]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.0044c810
mov ebp, eax
test ebp, ebp
je 0x485ef9
mov ecx, ebp
call fcn.00458630
cmp eax, 0x1002
jne 0x485ef9
push edi
push esi
mov ecx, ebp
call fcn.004562e0
mov eax, dword [esp + 0x18]
add eax, 8
push eax
lea edi, [ebp + 0x10]
push 0x100
push edi
call fcn.0057eed3
add esp, 0xc
mov ecx, ebp
call fcn.004563d0
mov ebx, eax
test ebx, ebx
je case.0x485d58.29606
mov eax, dword [ebx + 0x18]
mov ecx, 0x687f
cmp word [eax + 6], cx
jne 0x485aff
movzx eax, byte [eax + 0xc]
sub eax, 0xc0
je 0x485aec
sub eax, 1
je 0x485aec
sub eax, 2
jne 0x485aff
push str.AMD_Radeon_RX_Vega_56
jmp 0x485af1
push str.AMD_Radeon_RX_Vega_64
push 0x100
push edi
call fcn.0057eed3
add esp, 0xc
mov edx, dword [ebx + 0x18]
movzx eax, word [edx + 6]
cmp eax, 0x7340
jg 0x485d45
je case.0x485d58.29605
cmp eax, 0x164e
jg 0x485c14
je case.0x485d58.29605
cmp eax, 0x15dd
jg 0x485c03
je 0x485c37
cmp eax, 0x1506
je case.0x485d58.29605
cmp eax, 0x15bf
jne case.0x485d58.29606
cmp dword [esi + 0x110], 0
je case.0x485d58.29606
cmp dword [esi + 0x10f0], 0
je case.0x485d58.29606
cmp dword [esi + 0x1104], 0
je case.0x485d58.29606
push esi
mov ecx, ebp
call fcn.00456330
mov edi, eax
xor ebx, ebx
cmp dword [esi + edi*4 + 0x8e4], ebx
jne case.0x485d58.29606
push 0x240
call fcn.0056cb85
push eax
mov dword [esi + edi*4 + 0x8e4], eax
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x10f0]
push edi
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x485d5f
cmp dword [esi + edi*4 + 0xccc], ebx
jne case.0x485d58.29606
push 0x804
call fcn.0056cb85
push eax
mov dword [esi + edi*4 + 0xccc], eax
mov edx, dword [esi + 0x110]
mov eax, dword [esi + 0x1104]
push edi
push edx
call eax
add esp, 0x10
test eax, eax
je case.0x485d58.29606
mov ecx, dword [esi + edi*4 + 0xccc]
push ecx
call fcn.0056cbb4
mov dword [esi + edi*4 + 0xccc], ebx
jmp 0x485d73
sub eax, 0x1636
je 0x485c37
sub eax, 2
je 0x485c37
jmp case.0x485d58.29606
cmp eax, 0x687f
jg 0x485d38
je 0x485c37
cmp eax, 0x1681
je case.0x485d58.29605
cmp eax, 0x66af
jne case.0x485d58.29606
cmp dword [esi + 0x10fc], 0
je case.0x485d58.29606
cmp dword [esi + 0x10f0], 0
je case.0x485d58.29606
cmp dword [esi + 0x10f4], 0
je case.0x485d58.29606
cmp dword [esi + 0x10f8], 0
je case.0x485d58.29606
push esi
mov ecx, ebp
call fcn.00456330
mov edi, eax
cmp dword [esi + edi*4 + 0x114], 0
lea ebx, [esi + edi*4 + 0x114]
jne case.0x485d58.29606
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x10fc]
push ebx
push edi
push eax
call ecx
add esp, 0xc
test eax, eax
jne case.0x485d58.29606
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x10f0]
lea edx, [esp + 0x464]
push edx
push edi
push eax
call ecx
add esp, 0xc
test eax, eax
jne case.0x485d58.29606
mov cx, word [esp + 0x464]
xor edx, edx
test cx, cx
je 0x485cf9
movzx ecx, cx
jmp 0x485ce0
inc edx
mov word [esp + eax + 0x6a4], cx
lea eax, [edx + edx]
movzx ecx, word [esp + eax + 0x464]
test cx, cx
jne 0x485ce0
mov edx, dword [ebx]
push edx
mov edx, dword [esi + 0x110]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x10f4]
lea ecx, [esp + 0x6ac]
push ecx
push edi
push edx
mov dword [esp + 0x8b8], 0x3e8
call eax
add esp, 0x14
test eax, eax
jne case.0x485d58.29606
mov ecx, dword [esp + 0x38]
mov dword [esi + edi*4 + 0x4fc], ecx
jmp case.0x485d58.29606
cmp eax, 0x731f
je case.0x485d58.29605
jmp case.0x485d58.29606
sub eax, 0x73a5
cmp eax, 0xdb
ja case.0x485d58.29606
movzx edx, byte [eax + 0x485f74]
jmp dword [edx*4 + 0x485f6c]
mov edx, dword [esi + edi*4 + 0x8e4]
push edx
call fcn.0056cbb4
mov dword [esi + edi*4 + 0x8e4], ebx
add esp, 4
cmp dword [esi + 0x1138], 0
je 0x485dc4
push 0x278
lea eax, [esp + 0x1f0]
push 0
push eax
call fcn.0057f470
add esp, 0xc
lea ecx, [esp + 0x1ec]
push ecx
push esi
mov ecx, ebp
mov dword [esp + 0x1f4], 0x27
call fcn.00456330
mov edx, dword [esi + 0x110]
push eax
mov eax, dword [esi + 0x1138]
push edx
call eax
add esp, 0xc
cmp dword [esi + 0x1108], 0
je 0x485df0
lea ecx, [esp + 0x6a4]
push ecx
push esi
mov ecx, ebp
call fcn.00456330
mov edx, dword [esi + 0x110]
push eax
mov eax, dword [esi + 0x1108]
push edx
call eax
add esp, 0xc
cmp dword [esi + 0x110c], 0
je 0x485e36
lea ecx, [esp + 0x38]
push ecx
push esi
mov ecx, ebp
call fcn.00456330
mov edx, dword [esi + 0x110]
push eax
mov eax, dword [esi + 0x110c]
push edx
call eax
add esp, 0xc
test eax, eax
jne 0x485e36
mov edx, dword [esp + 0x40]
imul edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x4b8], ecx
mov dword [ebp + 0x4bc], edx
cmp dword [esi + 0x1140], 0
je 0x485e73
push 0xa4
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.0057f470
add esp, 0xc
lea ecx, [esp + 0x78]
push ecx
push esi
mov ecx, ebp
call fcn.00456330
mov edx, dword [esi + 0x110]
push eax
mov eax, dword [esi + 0x1140]
push edx
call eax
add esp, 0xc
cmp dword [esi + 0x1144], 0
je 0x485eb6
push 0xd0
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0057f470
add esp, 0xc
lea edx, [esp + 0x11c]
push edx
push esi
mov ecx, ebp
call fcn.00456330
mov ecx, dword [esi + 0x1144]
push eax
mov eax, dword [esi + 0x110]
push eax
call ecx
add esp, 0xc
cmp dword [esi + 0x1148], 0
je 0x485eed
lea edx, [esp + 0x2c]
xor eax, eax
push edx
push esi
mov ecx, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00456330
mov ecx, dword [esi + 0x1148]
push eax
mov eax, dword [esi + 0x110]
push eax
call ecx
add esp, 0xc
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc eax
add ebx, 0x624
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jl 0x485a30
test ebp, ebp
je 0x485f4c
push ebp
call fcn.0057ee45
add esp, 4
jmp 0x485f4c
mov eax, dword [esi + 0x10b8]
cmp eax, ebx
je 0x485f35
call eax
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x485f4c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x10c], ebx
mov ecx, dword [esp + 0x9a4]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0057db4c
add esp, 0x998
ret