Function at 0x431040
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d8cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x54], ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 4]
lea edx, [esp + 0x60]
mov byte [esp + 0x1a], bl
call fcn.00437e90
mov byte [esp + 0x54], 1
push eax
mov ecx, str.hkey
call fcn.00437f30
add esp, 4
mov byte [esp + 0x17], al
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x1c]
call fcn.0040b950
cmp byte [esp + 0x17], bl
je 0x431384
lea ecx, [esp + 0x20]
push ecx
xor esi, esi
call fcn.0040b7e0
mov byte [esp + 0x54], 2
lea edx, [esp + 0x1c]
push edx
call fcn.0040b7e0
mov byte [esp + 0x54], 3
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x54], 4
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov ecx, 0x6994ac
call fcn.0040b8a0
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x60], 4
call fcn.00430e90
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, 1
jbe 0x431134
mov eax, dword [esp + 0x3c]
add eax, 4
lea edi, [esp + 0x1c]
call fcn.0040daa0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x43114a
ja 0x431144
push 0x80070057
call fcn.00403d10
mov eax, dword [esp + 0x3c]
jmp 0x43114e
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040b840
mov byte [esp + 0x54], 6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x54], 7
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, 0x692fe8
call fcn.0040b8a0
mov byte [esp + 0x58], 8
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x60], 7
call fcn.00430e90
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, 1
jbe 0x431261
cmp eax, ebx
ja 0x4311bc
push 0x80070057
call fcn.00403d10
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, str.hkey_users
call fcn.00437f30
add esp, 4
test al, al
je 0x4311dc
mov esi, reloc.WS2_32.dll_closesocket
jmp 0x431261
cmp dword [esp + 0x30], ebx
ja 0x4311ec
push 0x80070057
call fcn.00403d10
mov edx, dword [esp + 0x2c]
push edx
mov ecx, str.hkey_current_user
call fcn.00437f30
add esp, 4
test al, al
je 0x431209
mov esi, closesocket
jmp 0x431261
cmp dword [esp + 0x30], ebx
ja 0x431219
push 0x80070057
call fcn.00403d10
mov eax, dword [esp + 0x2c]
push eax
mov ecx, str.hkey_classes_root
call fcn.00437f30
add esp, 4
test al, al
je 0x431236
mov esi, closesocket
jmp 0x431261
cmp dword [esp + 0x30], ebx
ja 0x431246
push 0x80070057
call fcn.00403d10
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, str.hkey_local_machine
call fcn.00437f30
add esp, 4
test al, al
je 0x431261
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
jge 0x43126f
or eax, 0xffffffff
jmp 0x43128c
push 0x692fe8
push eax
call fcn.0059472a
add esp, 8
cmp eax, ebx
jne 0x431286
or eax, 0xffffffff
jmp 0x43128c
sub eax, dword [esp + 0x18]
sar eax, 1
inc eax
lea ebx, [esp + 0x18]
call fcn.00437940
test esi, esi
je 0x431310
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
push ebp
push 0
push ecx
je 0x4312e3
mov eax, esp
mov dword [esp + 0x30], esp
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.0040b840
mov byte [esp + 0x60], 9
push ecx
mov edx, esp
mov dword [esp + 0x38], esp
mov eax, ebx
push eax
push edx
call fcn.0040b840
mov byte [esp + 0x64], 0xa
push esi
mov byte [esp + 0x68], 7
call fcn.004300b0
add esp, 0x14
jmp 0x431307
mov ecx, esp
mov dword [esp + 0x34], esp
lea edx, [esp + 0x24]
push edx
push ecx
call fcn.0040b840
mov byte [esp + 0x60], 0xb
push esi
mov byte [esp + 0x64], 7
call fcn.00430c80
add esp, 0x10
test al, al
je 0x431310
mov byte [esp + 0x16], 1
mov byte [esp + 0x54], 6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x431334
mov eax, dword [esp + 0x30]
push eax
call fcn.00440200
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00593fc0
add esp, 8
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.0040b950
mov byte [esp + 0x54], 3
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x431366
mov edx, dword [esp + 0x40]
push edx
call fcn.00440200
mov eax, dword [esp + 0x40]
push eax
call fcn.00593fc0
add esp, 8
mov byte [esp + 0x54], 2
lea ecx, [esp + 0x1c]
call fcn.0040b950
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x20]
call fcn.0040b950
jmp 0x4313a8
mov ecx, dword [esp + 0x5c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4313a8
mov byte [esp + 0x16], 1
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.0040b950
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret