Function at 0x1005e2b0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100abd2d
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x100db774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6bc], edi
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x1005e820
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6b0], eax
push 0x100cc3a4
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 4], 0
call fcn.10003930
test al, al
jne 0x1005e334
push 0
push 0x100cc3a4
lea ecx, [ebp - 0x6b0]
call fcn.10002a80
push esi
mov dword [ebp - 4], 1
call fcn.10054fb0
add esp, 4
mov dword [ebp - 0x6b4], eax
lea ecx, [ebp - 0x6b8]
push dword [eax + 8]
call fcn.100039f0
mov eax, dword [ebp - 0x6b8]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jne 0x1005e3c5
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
mov edx, dword [ebp - 0x6b8]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e39a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6b0]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1005e802
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1005e802
push 0x208
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.10075330
push 0x208
lea eax, [ebp - 0x6ac]
push 0
push eax
call fcn.10075330
add esp, 0x18
lea eax, [ebp - 0x6ac]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x6ac]
push eax
call ebx
test esi, esi
jle 0x1005e42e
nop dword [eax + eax]
lea eax, [ebp - 0x6ac]
push eax
call ebx
sub esi, 1
jne 0x1005e420
push dword [ebp - 0x6b8]
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x29c]
push eax
call esi
test eax, eax
je 0x1005e513
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x1005e82a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x6b4]
call fcn.10003930
test al, al
jne 0x1005e4c2
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005e4a0
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6b4]
call fcn.10002a80
lea eax, [ebp - 0x6b0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6b4]
push eax
call fcn.1002a520
mov edx, dword [ebp - 0x6b4]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e500
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
jmp 0x1005e7bf
mov eax, dword [ebp - 0x6b4]
cmp dword [eax], 2
jne 0x1005e7ae
mov dword [ebp - 0x94], 0x4f0053
mov dword [ebp - 0x90], 0x540046
mov dword [ebp - 0x8c], 0x410057
mov dword [ebp - 0x88], 0x450052
mov dword [ebp - 0x84], 0x4d005c
mov dword [ebp - 0x80], 0x630069
mov dword [ebp - 0x7c], 0x6f0072
mov dword [ebp - 0x78], 0x6f0073
mov dword [ebp - 0x74], 0x740066
mov dword [ebp - 0x70], 0x57005c
mov dword [ebp - 0x6c], 0x6e0069
mov dword [ebp - 0x68], 0x6f0064
mov dword [ebp - 0x64], 0x730077
mov dword [ebp - 0x60], 0x43005c
mov dword [ebp - 0x5c], 0x720075
mov dword [ebp - 0x58], 0x650072
mov dword [ebp - 0x54], 0x74006e
mov dword [ebp - 0x50], 0x650056
mov dword [ebp - 0x4c], 0x730072
mov dword [ebp - 0x48], 0x6f0069
mov dword [ebp - 0x44], 0x5c006e
mov dword [ebp - 0x40], 0x700041
mov dword [ebp - 0x3c], 0x200070
mov dword [ebp - 0x38], 0x610050
mov dword [ebp - 0x34], 0x680074
mov dword [ebp - 0x30], 0x5c0073
mov dword [ebp - 0x2c], 0x61004d
mov dword [ebp - 0x28], 0x740073
mov dword [ebp - 0x24], 0x720065
mov dword [ebp - 0x20], 0x440050
mov dword [ebp - 0x1c], 0x2e0046
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0
push 0x20219
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6c8]
call fcn.10008c80
test eax, eax
je 0x1005e682
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
mov eax, dword [ebp - 0x6c8]
test eax, eax
je 0x1005e7bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005e7bc
push 0x208
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.10075330
mov ebx, dword [ebp - 0x6c8]
lea eax, [ebp - 0x6b4]
add esp, 0xc
mov dword [ebp - 0x6b4], 0x208
push eax
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x6bc]
push eax
push 0
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005e6fc
mov eax, dword [ebp - 0x6bc]
cmp eax, 1
je 0x1005e6e1
cmp eax, 2
jne 0x1005e6fc
mov eax, dword [ebp - 0x6b4]
test eax, eax
je 0x1005e71e
test al, 1
jne 0x1005e6fc
shr eax, 1
cmp word [ebp + eax*2 - 0x4a6], 0
je 0x1005e727
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
test ebx, ebx
je 0x1005e7bc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005e7bc
xor eax, eax
mov word [ebp - 0x4a4], ax
lea eax, [ebp - 0x4a4]
push eax
call esi
test eax, eax
je 0x1005e79f
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.100039f0
lea eax, [ebp - 0x6b0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x6b4]
push eax
call fcn.1002a520
mov edx, dword [ebp - 0x6b4]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
test ebx, ebx
je 0x1005e7bf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005e7bf
mov byte [ebp - 4], 2
test ebx, ebx
je 0x1005e7ae
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10002770
or esi, 0xffffffff
mov edx, dword [ebp - 0x6b8]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e7e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6b0]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005e802
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001a70
push 0x80004005
call fcn.10001a70
int3