Function at 0x403110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x410004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.00402ea0
push 0
push str.SystemConfiguration.plist
push 0x40ad30
push eax
call fcn.00408550
add esp, 0x10
lea ecx, [esp + 0xc]
mov edi, eax
xor esi, esi
mov edx, edi
mov dword [esp + 0xc], esi
call fcn.00408730
test eax, eax
mov eax, dword [sym.imp.plist.dll_plist_dict_get_item]
mov dword [esp + 0x18], eax
je 0x403199
push edi
push str.SystemBUID
push str.Reading_key__s_from_config_file__s
push 5
call fcn.004052a0
push str.SystemBUID
push dword [esp + 0x20]
call dword [esp + 0x30]
add esp, 0x18
test eax, eax
je 0x403199
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
mov esi, eax
push dword [esp + 0xc]
mov eax, dword [sym.imp.plist.dll_plist_free]
mov dword [esp + 0x20], eax
call eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esp + 0x14], eax
push edi
call eax
mov eax, dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
mov edi, dword [sym.imp.plist.dll_plist_get_string_val]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
test esi, esi
je 0x4031fe
push esi
call eax
add esp, 4
cmp eax, 3
jne 0x4031f6
push ebx
push esi
call edi
push dword [ebx]
push str.SystemBUID
push str.Got__s__s
push 5
call fcn.004052a0
add esp, 0x18
push esi
call dword [esp + 0x20]
add esp, 4
cmp dword [ebx], 0
jne 0x40340c
push str.SystemBUID
push str.No_previous__s_found
push 5
call fcn.004052a0
add esp, 0xc
push 0x25
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time32]
add esp, 4
dec eax
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add esp, 4
xor esi, esi
cmp esi, 8
je 0x403270
cmp esi, 0xd
je 0x403270
cmp esi, 0x12
je 0x403270
cmp esi, 0x17
je 0x403270
call ebx
and eax, reloc.WS2_32.dll_ntohs
jns 0x403268
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [eax + str.ABCDEF0123456789]
jmp 0x403272
mov al, 0x2d
mov byte [edi + esi], al
inc esi
cmp esi, 0x24
jl 0x403246
mov ebx, dword [esp + 0x10]
mov byte [edi + 0x24], 0
push edi
mov dword [ebx], edi
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
mov esi, eax
call fcn.00402ea0
mov edi, eax
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat32]
add esp, 8
test eax, eax
je 0x4032b2
mov ecx, edi
call fcn.00403060
call fcn.00402ea0
push 0
push str.SystemConfiguration.plist
push 0x40ad30
push eax
call fcn.00408550
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4033d6
mov edx, edi
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
call fcn.00408730
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40330d
call dword [sym.imp.plist.dll_plist_new_dict]
push esi
push str.SystemBUID
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.plist.dll_plist_dict_set_item]
add esp, 0xc
jmp 0x40334d
push str.SystemBUID
push eax
call dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x403330
push str.SystemBUID
push dword [esp + 0x10]
call dword [sym.imp.plist.dll_plist_dict_remove_item]
add esp, 8
push esi
push str.SystemBUID
push dword [esp + 0x14]
call dword [sym.imp.plist.dll_plist_dict_set_item]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
push esi
mov dword [esp + 0x14], 0
call dword [esp + 0x24]
add esp, 4
cmp eax, 3
jne 0x403397
lea eax, [esp + 0x10]
push eax
push esi
call dword [esp + 0x2c]
push edi
push dword [esp + 0x1c]
push str.SystemBUID
push str.Setting_key__s_to__s_in_config_file__s
push 5
call fcn.004052a0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test eax, eax
je 0x4033ac
push eax
call dword [esp + 0x18]
add esp, 4
jmp 0x4033ac
push edi
push str.SystemBUID
push str.Setting_key__s_in_config_file__s
push 5
call fcn.004052a0
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004087c0
add esp, 4
mov esi, eax
push dword [esp + 0xc]
call dword [esp + 0x20]
add esp, 4
test esi, esi
je 0x4033d6
push edi
call dword [esp + 0x18]
add esp, 4
jmp 0x40340c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push edi
push str.ERROR:_Failed_to_write_to__s:__s
push 1
call fcn.004052a0
push edi
call dword [esp + 0x28]
add esp, 0x14
push str.WARNING:_Failed_to_store_SystemBUID__this_might_be_a_problem
push 2
call fcn.004052a0
add esp, 8
push str.SystemBUID
push dword [ebx]
push str.Using__s_as__s
push 5
call fcn.004052a0
mov ecx, dword [esp + 0x5c]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408942
mov esp, ebp
pop ebp
ret