Function at 0x43ce70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c027
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x58ec74]
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.004f9228
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 0x5497b0
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 0x43cf6f
push 0
push 0x5497b0
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 0x43cfff
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43cf60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8f0
push edx
push ecx
call fcn.004f8f7d
add esp, 8
jmp 0x43cfff
lea ecx, [ebp - 0xa4]
call fcn.004047a0
test al, al
jne 0x43cfdf
nop
lea ecx, [ebp - 0xa4]
call fcn.00404790
lea ecx, [ebp - 0xa4]
cmp eax, 2
je 0x43cfac
call fcn.004047c0
lea ecx, [ebp - 0xa4]
call fcn.004047a0
test al, al
je 0x43cf80
jmp 0x43cfdf
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 0x43cfc6
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 0x5497b0
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.004f9228
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 0x43d070
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.004372f0
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x43d0a7
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 0x43d0b0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43d0fa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d0f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8f5
push edx
push ecx
call fcn.004f8f7d
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 0x43d14c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d142
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8fa
push edx
push ecx
call fcn.004f8f7d
add esp, 8
push edi
call fcn.004f9231
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 0x43d170
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 0x43d20c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d202
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d8ff
push edx
push ecx
call fcn.004f8f7d
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.0042e550
mov byte [ebp - 4], 8
call fcn.00411210
test al, al
je 0x43d2fd
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], 0x68e
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
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.0042e4d0
add esp, 0x10
test al, al
je 0x43d2f2
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], 0x694
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa4]
call fcn.0042e530
add esp, 0x24
mov eax, dword [ebp - 0xa4]
jmp 0x43d7f8
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0042efa0
test al, al
je 0x43d751
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x549c38
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.0042f810
push 0x54f528
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6a3
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
mov edx, dword [ebp - 0x48]
add esp, 0x18
test edx, edx
je 0x43d413
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.00409450
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x43d3cb
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], 0x6a5
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
add esp, 0x1c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.00404a80
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x43d49b
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.00409450
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x43d453
mov eax, dword [eax]
push eax
push 0x54d518
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.0046dbc0
push eax
call fcn.00471a00
add esp, 0x1c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.00404a80
push 0x54f528
sub esp, 0xc
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
mov eax, esp
mov dword [ebp - 0x18], 0x6a8
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
add esp, 0x18
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xb4]
push 0x54bc5c
push str.CheckModelName
push eax
call fcn.0042f160
mov ecx, eax
call fcn.0042e7b0
mov ecx, eax
call fcn.0042f180
push 0
lea ecx, [ebp - 0xa4]
call fcn.0042e790
test al, al
je 0x43d672
lea eax, [ebp - 0x70]
push eax
push str.modelName
lea ecx, [ebp - 0xa4]
call fcn.0042e7b0
mov ecx, eax
call fcn.0042ee30
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 0x43d570
test dl, dl
je 0x43d56c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x43d570
add ecx, 2
add eax, 2
test dl, dl
jne 0x43d550
xor eax, eax
jmp 0x43d575
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43d5c9
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], 0x6b2
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
add esp, 0x18
lea ecx, [ebp - 0xb4]
call fcn.0042e6d0
lea ecx, [ebp - 0x40]
call fcn.00403b60
jmp 0x43d803
cmp dword [ebp - 0x60], 0
je 0x43d626
cmp dword [ebp - 0x78], 0
je 0x43d626
cmp esi, 0x10
mov dword [ebp - 0x1c], str.d:jenkinsworkspace_asusfancontrolservice_asusfancontrolservice_asusfancontrolservice.cpp
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 0x6ba
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.0046dbc0
push eax
call fcn.00471a00
add esp, 0x20
lea ecx, [ebp - 0xb4]
call fcn.0042e6d0
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.0042e4d0
add esp, 0x10
test al, al
je 0x43d733
mov dword [ebp - 0x18], 0x6c3
jmp 0x43d6f0
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], 0x6cd
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
add esp, 0x18
lea ecx, [ebp - 0xb4]
call fcn.0042e6d0
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.0042e4d0
add esp, 0x10
test al, al
je 0x43d733
mov dword [ebp - 0x18], 0x6d5
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.0046dbc0
push eax
call fcn.00471a00
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa8]
call fcn.0042e530
add esp, 0x24
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x43d744
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call fcn.00403b60
jmp 0x43d803
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], 0x6df
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
push 0xf023f
push str.SoftwareAsusAsusFanService_
lea eax, [ebp - 0xa8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0042e4d0
add esp, 0x28
test al, al
je 0x43d7f2
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], 0x6e4
movq xmm0, qword [ebp - 0x1c]
push 2
movq qword [eax], xmm0
mov dword [eax + 8], str.checkxmlFile
call fcn.0046dbc0
push eax
call fcn.00471a00
push 0
push str.BIOS_fan_patch
push dword [ebp - 0xa8]
call fcn.0042e530
add esp, 0x24
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x43d803
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xb4]
call fcn.0042e6d0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x43d848
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d83e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d904
push edx
push ecx
call fcn.004f8f7d
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 0x43d890
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d886
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d909
push edx
push ecx
call fcn.004f8f7d
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 0x43d8d5
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d8cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d90e
push edx
push ecx
call fcn.004f8f7d
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.004f8f3c
mov esp, ebp
pop ebp
ret
call fcn.00514793
call fcn.00514793
call fcn.00514793
call fcn.00514793
call fcn.00514793
call fcn.00514793
call fcn.00514793
int3