Function at 0x4010e0
Capabilities:
Check mutex on windows
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x620
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x401458
xor eax, eax
mov ecx, 8
mov dword [0x40facc], eax
mov edi, 0x407a4c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
xor ebp, ebp
push ecx
push 0x4070c4
push 0x80000002
mov byte [esp + 0x3c], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [0x40fad0], eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401221
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push 0x4070bc
push edx
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401216
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebp
push 0x4070ac
push eax
call esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
push 0x407098
push ecx
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x10]
push edx
push 0x40facc
push eax
push ebp
push 0x40708c
push ecx
mov dword [esp + 0x2c], 9
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
push 0x407080
push edx
mov dword [esp + 0x2c], 0x1f4
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebp
push 0x407070
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401245
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401245
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401245
mov al, byte [esp + 0x30]
test al, al
je 0x401458
lea edx, [esp + 0x30]
lea eax, [esp + 0x230]
push edx
push 0x40706c
push eax
call fcn.00401a99
lea ecx, [esp + 0x3c]
push 0x20
push ecx
call fcn.00401bf0
add esp, 0x14
test eax, eax
je 0x4012a7
mov edx, eax
lea ecx, [esp + 0x30]
sub edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x230], 0
lea edx, [esp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4012af
mov byte [esp + 0x430], 0
push 0x40
push 0x40fa80
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x4012d9
push 0x40fa80
push 0x407064
push 0x40fa80
call fcn.00401a99
add esp, 0xc
jmp 0x4012eb
push 0x40705c
push 0x40fa80
call fcn.00401a99
add esp, 8
push 0x40fa80
call fcn.00401bb4
add esp, 4
call fcn.00401760
push 0x407054
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401458
push 0x40704c
call fcn.00401040
cmp eax, 0xffffffff
je 0x4013be
push eax
call fcn.004010c0
test ebp, ebp
jne 0x401448
push edi
call fcn.00401470
add esp, 4
test eax, eax
je 0x401448
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401377
push 2
call sub.WDSCard.dll_WDOpenDevice
mov esi, eax
cmp esi, 0xffffffff
je 0x401377
push esi
call fcn.004017c0
push esi
call sub.WDSCard.dll_WDCloseDevice
push edi
call fcn.00401490
lea ecx, [esp + 0x34]
add esp, 4
test ecx, ecx
je 0x4013a9
test ebx, ebx
jne 0x4013a9
lea edx, [esp + 0x430]
lea eax, [esp + 0x230]
push edx
push eax
call fcn.00401580
add esp, 8
mov ebx, 1
push 0x3e8
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401323
test ebp, ebp
je 0x401448
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40140a
mov eax, dword [0x407a14]
test eax, eax
je 0x40140a
mov edi, 0x407a4c
mov esi, 0x407a70
mov eax, dword [edi]
test eax, eax
je 0x4013f5
push eax
push esi
call dword [0x407a14]
mov dword [edi], 0
add esi, 0x1000
add edi, 4
cmp esi, 0x40fa70
jl 0x4013e1
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40141f
lea ecx, [esp + 0x230]
push ecx
call fcn.004014d0
lea edx, [esp + 0x10]
push edx
push 0x4070c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x407040
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ebp, ebp
xor ebx, ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401323
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x10