Function at 0x404100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x416174]
xor eax, ebp
mov dword [ebp - 4], eax
push str.windir
mov dword [ebp - 0x44c], 0
call fcn.004054c4
add esp, 4
test eax, eax
jne 0x404133
mov eax, str.C:Windows
push eax
call fcn.004111df
add esp, 4
test eax, eax
je 0x404169
push 0x10
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
push str.Failed_to_locate_Windows_directory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push str.Sysnative
call fcn.004111df
add esp, 4
test eax, eax
jne 0x404186
mov dword [ebp - 0x444], 0x40
jmp 0x4041a5
push str.System32
call fcn.004111df
add esp, 4
test eax, eax
jne 0x404bf8
mov dword [ebp - 0x444], 0x20
call fcn.00403110
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x4041dc
push 0x10
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
push str.Failed_to_locate_driver_file.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push edi
lea ecx, [ebp - 0x434]
push ecx
push eax
call fcn.004057d0
add esp, 8
test eax, eax
jne 0x40422a
mov edi, dword [ebp - 0x420]
test edi, edi
jne 0x404222
push 0x10
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
push str.Driver_file_is_empty.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 0xbebc200
jbe 0x404245
mov eax, str.Driver_file_too_large.
call fcn.004012a0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push ebx
push edi
call fcn.00404d21
mov ebx, eax
add esp, 4
mov dword [ebp - 0x448], ebx
test ebx, ebx
jne 0x404277
mov eax, str.Failed_to_allocate_memory.
call fcn.004012a0
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x43c]
push esi
push 0x413dd0
push edx
call fcn.00404fb9
mov esi, eax
add esp, 8
test esi, esi
jne 0x4042af
mov eax, str.Failed_to_open_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
push 1
push ebx
call fcn.0040521a
add esp, 0x10
push esi
cmp eax, edi
je 0x4042e6
call fcn.00405682
add esp, 4
mov eax, str.Failed_to_read_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
call fcn.00405682
mov eax, dword [ebp - 0x43c]
push str.drivers_atikmdag_patched_atikmdag.sys
push eax
call fcn.0041073e
add esp, 0xc
test eax, eax
jne 0x40432c
mov dword [ebp - 0x440], 1
call fcn.004033b0
mov dword [ebp - 0x438], eax
test eax, eax
je 0x404388
push str.drivers_atikmdag_patched_atikmdag.sys
push eax
call fcn.0041073e
add esp, 8
jmp 0x40437a
push edi
push ebx
call fcn.00401c30
add esp, 8
test eax, eax
jne 0x404348
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x438], eax
jmp 0x404388
mov ecx, dword [ebp - 0x43c]
push str.drivers_atikmdag.sys
push ecx
call fcn.0041073e
add esp, 8
mov dword [ebp - 0x440], 1
test eax, eax
jne 0x40437e
mov eax, str.drivers_atikmdag.sys.bak
mov dword [ebp - 0x438], eax
call fcn.00401480
test eax, eax
jne 0x404388
mov dword [ebp - 0x438], 0
call fcn.00401000
mov eax, dword [ebp - 0x444]
cmp eax, 0x40
jne 0x4043a7
push ebx
mov eax, edi
call fcn.004024a0
mov esi, str.64_bit_driver_found._n_n
jmp 0x4043b9
cmp eax, 0x20
jne 0x4043cc
push ebx
mov eax, edi
call fcn.00402b00
mov esi, str.32_bit_driver_found._n_n
mov ecx, 5
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add esp, 4
cmp dword [0x419938], 0
jne 0x4047ac
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4043e0
mov edx, dword [0x4198cc]
mov ecx, 6
mov esi, str.DVI_HDMI_limit:___________t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4198c8]
movsw word es:[edi], word [esi]
push edx
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
mov ecx, dword [0x4198d0]
mov esi, dword [0x4198d4]
add esp, 4
test ecx, ecx
jne 0x404426
test esi, esi
je 0x40447c
lea eax, [ebp - 0x404]
dec eax
lea ecx, [ecx]
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x404430
mov edx, dword [str.SL_DVI_HDMI_limit:_____t]
mov dword [eax], edx
mov edx, dword [0x414150]
mov dword [eax + 4], edx
mov edx, dword [0x414154]
mov dword [eax + 8], edx
mov edx, dword [0x414158]
mov dword [eax + 0xc], edx
mov edx, dword [0x41415c]
mov dword [eax + 0x10], edx
mov edx, dword [0x414160]
mov dword [eax + 0x14], edx
push esi
lea eax, [ebp - 0x404]
call fcn.004013a0
add esp, 4
cmp dword [0x41993c], 0
jne 0x4044bf
lea edi, [ebp - 0x404]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404490
mov eax, dword [0x4198dc]
mov ecx, 6
mov esi, str.SL_DVI_limit_on_DL_DVI:_t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4198d8]
push eax
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
add esp, 4
mov ebx, dword [0x4198c4]
mov edx, dword [0x4198e0]
test ebx, ebx
jne 0x4044db
test edx, edx
jne 0x4044db
cmp dword [0x4198e4], edx
je 0x404514
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4044e2
mov ecx, 5
mov esi, str.DP_DVI_HDMI_limit:____t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4198e4]
movsw word es:[edi], word [esi]
push ecx
mov ecx, edx
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
add esp, 4
test ebx, ebx
jne 0x404526
cmp dword [0x4198e8], 0
jne 0x404526
cmp dword [0x4198ec], 0
je 0x404562
lea edi, [ebp - 0x404]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404530
mov edx, dword [0x4198ec]
mov ecx, 6
mov esi, str.HDMI_DVI_limit:___________t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4198e8]
movsw word es:[edi], word [esi]
push edx
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
add esp, 4
mov edx, dword [0x4198f0]
mov ebx, dword [0x4198f4]
test edx, edx
jne 0x404576
test ebx, ebx
je 0x4045ac
lea edi, [ebp - 0x404]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404580
mov ecx, 7
mov esi, str.HDMI_limit:__________________t
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
setne cl
push ebx
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
call fcn.004013a0
add esp, 4
cmp dword [0x4198c4], 0
mov edx, dword [0x4198f8]
mov ebx, dword [0x4198fc]
jne 0x4045c9
test edx, edx
jne 0x4045c9
test ebx, ebx
je 0x4045fd
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4045d0
mov ecx, 6
mov esi, str.HDMI_1.3_limit:__________t
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
setne cl
movsw word es:[edi], word [esi]
push ebx
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
add esp, 4
mov edx, dword [0x419900]
mov ebx, dword [0x419904]
test edx, edx
jne 0x404611
test ebx, ebx
je 0x40463f
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404618
mov ecx, 7
mov esi, str.TMDS_limit:__________________t
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, edx
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
call fcn.004013a0
add esp, 4
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404646
mov eax, dword [0x41990c]
mov ecx, 7
mov esi, str.CrossFire_limit:_____________t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x419908]
push eax
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
call fcn.004013a0
lea edi, [ebp - 0x404]
add esp, 4
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404680
mov ecx, 8
mov esi, str.VGA_limit:_____________________t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x419914]
push ecx
mov ecx, dword [0x419910]
lea eax, [ebp - 0x404]
call fcn.004013a0
mov edx, dword [0x419918]
mov ebx, dword [0x41991c]
add esp, 4
test edx, edx
jne 0x4046c3
test ebx, ebx
je 0x4046fc
lea edi, [ebp - 0x404]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4046d0
mov ecx, 7
mov esi, str.HBlank_limit:________________t
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
setne cl
push ebx
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
call fcn.004013a0
add esp, 4
mov edx, dword [0x419920]
mov ebx, dword [0x419924]
test edx, edx
jne 0x404710
test ebx, ebx
je 0x40473e
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404717
mov ecx, 6
mov esi, str.10_resolution_limit:_____t
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, edx
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
call fcn.004013a0
add esp, 4
mov ecx, dword [0x419928]
mov esi, dword [0x41992c]
test ecx, ecx
jne 0x404752
test esi, esi
je 0x4047ac
lea eax, [ebp - 0x404]
dec eax
lea esp, [esp]
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x404760
mov edx, dword [str.Low_resolution_limit:__t]
mov dword [eax], edx
mov edx, dword [0x414290]
mov dword [eax + 4], edx
mov edx, dword [0x414294]
mov dword [eax + 8], edx
mov edx, dword [0x414298]
mov dword [eax + 0xc], edx
mov edx, dword [0x41429c]
mov dword [eax + 0x10], edx
mov edx, dword [0x4142a0]
mov dword [eax + 0x14], edx
push esi
lea eax, [ebp - 0x404]
call fcn.004013a0
add esp, 4
cmp dword [0x4198c4], 0
mov edx, dword [0x419930]
mov ebx, dword [0x419934]
jne 0x4047d1
test edx, edx
jne 0x4047d1
test ebx, ebx
jne 0x4047d1
cmp dword [0x419938], ebx
je 0x404800
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4047d8
mov ecx, 5
mov esi, str.BIOS_signature_check:_t
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
mov ecx, edx
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
call fcn.004013a0
add esp, 4
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404807
mov ax, word [0x4142bc]
mov word [edi], ax
call fcn.00401ba0
test eax, eax
lea eax, [ebp - 0x404]
jne 0x4049b7
dec eax
cmp dword [ebp - 0x440], 0
jne 0x404865
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404835
mov ecx, dword [str.No_values_found.]
mov edx, dword [0x4142c4]
mov dword [eax], ecx
mov ecx, dword [0x4142c8]
mov dword [eax + 4], edx
mov edx, dword [0x4142cc]
mov dword [eax + 8], ecx
mov cl, byte [0x4142d0]
jmp 0x40489e
cmp dword [ebp - 0x438], 0
jne 0x4048c0
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404870
mov ecx, dword [str.No_backup_found.]
mov edx, dword [0x4142d8]
mov dword [eax], ecx
mov ecx, dword [0x4142dc]
mov dword [eax + 4], edx
mov edx, dword [0x4142e0]
mov dword [eax + 8], ecx
mov cl, byte [0x4142e4]
push 0
mov dword [eax + 0xc], edx
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
lea edx, [ebp - 0x404]
push edx
push 0
mov byte [eax + 0x10], cl
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404972
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4048c0
mov ecx, dword [str.Restore_from_backup_]
mov edx, dword [0x4142ec]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [eax], ecx
mov ecx, dword [0x4142f0]
mov dword [eax + 4], edx
mov edx, dword [0x4142f4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4142f8]
mov dword [eax + 0xc], edx
mov dl, byte [0x4142fc]
push 4
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
lea eax, [ebp - 0x404]
push eax
push 0
call esi
cmp eax, 6
jne 0x404972
call fcn.004040a0
mov edi, dword [ebp - 0x43c]
push str.drivers_atikmdag_patched_atikmdag.sys
push edi
call fcn.0041073e
add esp, 8
test eax, eax
jne 0x404987
call fcn.004034d0
test eax, eax
jne 0x40495d
mov eax, str.Failed_to_restore_driver_path.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403ff0
push 0x40
push str.Restore
push str.Driver_successfully_restored.
push 0
call esi
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x438]
push ecx
call fcn.004014b0
add esp, 4
test eax, eax
jne 0x404962
mov eax, str.Failed_to_restore_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4049b8
mov edx, dword [str.Patch_found_values_]
mov ecx, dword [0x41436c]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [eax], edx
mov edx, dword [0x414370]
mov dword [eax + 4], ecx
mov ecx, dword [0x414374]
mov dword [eax + 8], edx
mov edx, dword [0x414378]
push 4
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
lea eax, [ebp - 0x404]
push eax
push 0
call esi
cmp eax, 6
jne 0x404972
call fcn.004040a0
mov ecx, dword [ebp - 0x448]
mov edi, dword [ebp - 0x420]
push ecx
call fcn.00401520
add esp, 4
test eax, eax
jne 0x404a48
mov eax, str.Failed_to_write_new_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x419944], 0
jne 0x404a5a
call fcn.004015f0
test eax, eax
jne 0x404a94
call fcn.00401960
test eax, eax
jne 0x404a8d
push str.drivers_atikmdag.sys.new
call fcn.004111a2
add esp, 4
mov eax, str.Failed_to_sign_new_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
mov ebx, 1
jmp 0x404a9a
mov ebx, dword [ebp - 0x44c]
cmp dword [ebp - 0x438], 0
je 0x404ae8
mov edi, dword [ebp - 0x43c]
push str.drivers_atikmdag.sys.new
call fcn.004014b0
add esp, 4
test eax, eax
jne 0x404ba1
push str.drivers_atikmdag.sys.new
call fcn.004111a2
add esp, 4
mov eax, str.Failed_to_replace_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push str.drivers_atikmdag_patched
call fcn.004111ad
push str.drivers_atikmdag.sys.new
mov edi, str.drivers_atikmdag_patched_atikmdag.sys
call fcn.004014b0
add esp, 8
test eax, eax
jne 0x404b3c
push str.drivers_atikmdag.sys.new
call fcn.004111a2
push str.drivers_atikmdag_patched
call fcn.00410cc8
add esp, 8
mov eax, str.Failed_to_move_driver_file.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x43c]
push edx
call fcn.004038c0
add esp, 4
test eax, eax
jne 0x404b71
call fcn.00403ff0
mov eax, str.Failed_to_create_driver_links.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
call fcn.004031e0
test eax, eax
jne 0x404b9c
call fcn.00403ff0
mov eax, str.Failed_to_set_new_driver_path.
call fcn.004012a0
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404050
cmp dword [0x419944], 0
je 0x404bbb
push 0x40
push str.Patch
push str.Driver_successfully_patched_and_self_signed._nTest_mode_is_required.
jmp 0x40496e
test ebx, ebx
je 0x404be7
push 0x30
push str.Patch
push str.Driver_successfully_patched__but_signing_failed._nDriver_has_been_self_signed._Test_mode_is_required.
push 0
call esi
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10
push 0x40
push str.Patch
push str.Driver_successfully_patched_and_signed.
jmp 0x40496e
push 0x10
push str.AMD_ATI_Pixel_Clock_Patcher_1.4.14
push str.Failed_to_locate_system_directory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00404c21
mov esp, ebp
pop ebp
ret 0x10