Function at 0x43d120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d247
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x58fc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
call fcn.004fa445
add esp, 4
mov edi, eax
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb8], esi
call fcn.004043d0
push 0
push 0x54a7b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404d70
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00404800
test al, al
jne 0x43d21f
push 0
push 0x54a7b0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], al
call fcn.00404d70
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x43d2af
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d210
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dba0
push edx
push ecx
call fcn.004fa19d
add esp, 8
jmp 0x43d2af
lea ecx, [ebp - 0xa4]
call fcn.004047a0
test al, al
jne 0x43d28f
nop
lea ecx, [ebp - 0xa4]
call fcn.00404790
lea ecx, [ebp - 0xa4]
cmp eax, 2
je 0x43d25c
call fcn.004047c0
lea ecx, [ebp - 0xa4]
call fcn.004047a0
test al, al
je 0x43d230
jmp 0x43d28f
call fcn.00404610
lea ecx, [ebp - 0xa4]
movzx eax, byte [eax + 5]
push eax
call fcn.00404750
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x43d276
sub edx, esi
lea ecx, [ebp - 0x40]
push edx
push eax
call fcn.00404d70
mov esi, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa4]
call fcn.004045f0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x78], xmm0
lea ecx, [ebp - 0xa4]
call fcn.00404470
push 0
push 0x54a7b0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 2
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00404d70
xor ecx, ecx
mov byte [ebp - 4], 3
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fa445
mov ecx, edi
mov dword [ebp - 0x30], 0
add esp, 4
mov dword [ebp - 0x2c], 7
mov esi, eax
xor eax, eax
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d320
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.004040c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00437500
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x43d357
mov ecx, dword [ecx]
mov edx, esi
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x43d360
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43d3aa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d3a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dba5
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x43d3fc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d3f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dbaa
push edx
push ecx
call fcn.004fa19d
add esp, 8
push edi
call fcn.004fa44e
mov ecx, esi
mov dword [ebp - 0x30], 0
add esp, 4
mov dword [ebp - 0x2c], 7
xor eax, eax
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d420
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004040c0
push 0xc
push str.FanStore.xml
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00403f40
mov dword [ebp - 0x48], 0
xor ecx, ecx
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x43d4bc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d4b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dbaf
push edx
push ecx
call fcn.004fa19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0042e770
mov byte [ebp - 4], 8
call fcn.00411430
test al, al
je 0x43d5ad
push str._fan_service_:_CheckFanChange__del_fanstore.xml_and_set_restore_key_to_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x692
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xf023f
push str.SoftwareAsusAsusFanService_
lea eax, [ebp - 0xa4]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0042e6f0
add esp, 0x10
test al, al
je 0x43d5a2
push str._fan_service_:_WriteDword_BIOS_FAN_PATCH_NAME_:_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x698
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa4]
call fcn.0042e750
add esp, 0x24
mov eax, dword [ebp - 0xa4]
jmp 0x43daa8
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0042f1c0
test al, al
je 0x43da01
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x54ac38
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004040c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xb4]
call fcn.0042fa30
push 0x550568
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6a7
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
mov edx, dword [ebp - 0x48]
add esp, 0x18
test edx, edx
je 0x43d6c3
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xa9]
cmovae eax, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa0]
lea eax, [eax + edx*2]
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
push eax
push edx
call fcn.00409670
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x43d67b
mov eax, dword [eax]
push eax
push str.file_path___s
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6a9
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x1c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.00404a80
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x43d74b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa9]
cmovae eax, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0xa0]
lea eax, [eax + edx*2]
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
push eax
push edx
call fcn.00409670
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x43d703
mov eax, dword [eax]
push eax
push 0x54e518
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6ab
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x1c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.00404a80
push 0x550568
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6ac
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xb4]
push 0x54cc5c
push str.CheckModelName
push eax
call fcn.0042f380
mov ecx, eax
call fcn.0042e9d0
mov ecx, eax
call fcn.0042f3a0
push 0
lea ecx, [ebp - 0xa4]
call fcn.0042e9b0
test al, al
je 0x43d922
lea eax, [ebp - 0x70]
push eax
push str.modelName
lea ecx, [ebp - 0xa4]
call fcn.0042e9d0
mov ecx, eax
call fcn.0042f050
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x88]
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x70]
cmp esi, 0x10
cmovae eax, edi
cmp dword [ebp - 0x5c], 0x10
cmovae ecx, dword [ebp - 0x70]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x43d820
test dl, dl
je 0x43d81c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x43d820
add ecx, 2
add eax, 2
test dl, dl
jne 0x43d800
xor eax, eax
jmp 0x43d825
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43d879
push str._fan_service_:_fanstore.xml_pass
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6b6
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
lea ecx, [ebp - 0xb4]
call fcn.0042e8f0
lea ecx, [ebp - 0x40]
call fcn.00403b60
jmp 0x43dab3
cmp dword [ebp - 0x60], 0
je 0x43d8d6
cmp dword [ebp - 0x78], 0
je 0x43d8d6
cmp esi, 0x10
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0x6be
movq xmm0, qword [ebp - 0x1c]
lea eax, [ebp - 0x70]
cmovae ecx, edi
cmp dword [ebp - 0x5c], 0x10
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
push str._fan_service_:_del_fanstore.xml__s:_s__and_set_restore_key_to_0
sub esp, 0xc
mov eax, esp
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x20
lea ecx, [ebp - 0xb4]
call fcn.0042e8f0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xf023f
push str.SoftwareAsusAsusFanService_
lea eax, [ebp - 0xa8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0042e6f0
add esp, 0x10
test al, al
je 0x43d9e3
mov dword [ebp - 0x18], 0x6c7
jmp 0x43d9a0
push str._fan_service_:_fanstore.xml_is_old_version__del_it_and_set_restore_key_to_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6d1
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
add esp, 0x18
lea ecx, [ebp - 0xb4]
call fcn.0042e8f0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xf023f
push str.SoftwareAsusAsusFanService_
lea eax, [ebp - 0xa8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0042e6f0
add esp, 0x10
test al, al
je 0x43d9e3
mov dword [ebp - 0x18], 0x6d9
push str._fan_service_:_WriteDword_BIOS_FAN_PATCH_NAME_:_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
movq xmm0, qword [ebp - 0x1c]
mov eax, esp
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa8]
call fcn.0042e750
add esp, 0x24
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x43d9f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call fcn.00403b60
jmp 0x43dab3
push str._fan_service_:_fanstore.xml_is_not_exist__set_restore_key_to_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6e3
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
push 0xf023f
push str.SoftwareAsusAsusFanService_
lea eax, [ebp - 0xa8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0042e6f0
add esp, 0x28
test al, al
je 0x43daa2
push str._fan_service_:_WriteDword_BIOS_FAN_PATCH_NAME_:_0
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6e8
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046e790
push eax
call fcn.00472660
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa8]
call fcn.0042e750
add esp, 0x24
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x43dab3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xb4]
call fcn.0042e8f0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x43daf8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43daee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dbb4
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 0x10
jb 0x43db40
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43db36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dbb9
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x43db85
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43db7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43dbbe
push edx
push ecx
call fcn.004fa19d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fa15c
mov esp, ebp
pop ebp
ret
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
call fcn.005159b3
int3