Function at 0x75924b5f
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x7594d0ac]
and dword [ebp - 0x23c], 0
and dword [ebp - 0x234], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x1c]
push edi
push 0x104
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x75924ccf
mov ax, word [edi]
and word [ebp - 8], 0
mov word [ebp - 0xc], ax
mov ax, word [edi + 2]
mov word [ebp - 0xa], ax
xor edx, edx
cmp word [esi], dx
jne 0x7593013b
mov eax, dword [ebp - 0x220]
xor ecx, ecx
inc ecx
push ecx
push eax
push 0x75924ddc
push dword [ebp - 0x228]
mov dword [ebp - 0x23c], ecx
mov word [eax], dx
call fcn.759242fa
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x218]
push dword [eax + 0x58]
mov dword [ebp - 0x238], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x75924cd9
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x75924cd9
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [esi]
push 1
push ebx
push 0x75923f70
push dword [ebp - 0x228]
mov word [ebx], ax
mov ax, word [esi + 2]
and word [ebx + 4], 0
mov word [ebx + 2], ax
call fcn.759242fa
add esi, 4
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push esi
push 0x75924b48
push dword [ebp - 0x228]
call fcn.759242fa
push dword [ebp - 0x23c]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push ebx
push dword [ebp - 0x218]
call fcn.75924ce9
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.75921930
leave
ret 0x20
and word [ebp - 0xc], 0
jmp 0x75924bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x759303f6
push esi
call fcn.7594204f
test eax, eax
je 0x759303c0
push 8
pop ecx
push dword [ebp - 0x218]
xor eax, eax
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x264], 1
mov dword [ebp - 0x224], edi
call fcn.75923741
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x218]
add eax, 0x58
push edi
push eax
mov dword [ebp - 0x238], eax
call fcn.75923884
cmp eax, edi
mov dword [ebp - 0x230], eax
je 0x75930220
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0x8c]
cmp eax, edi
je 0x75930215
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push edi
push 0x75925ec0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x75930215
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x26c]
push eax
push edi
push 0x75930464
push dword [ebp - 0x234]
mov dword [ebp - 0x244], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x230]
call fcn.759237a6
cmp dword [ebp - 0x22c], edi
je 0x75930233
push dword [ebp - 0x218]
call fcn.75923abb
cmp dword [ebp - 0x224], edi
jne 0x75930348
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x218]
call fcn.75937cd9
cmp eax, edi
jne 0x759302b1
cmp dword [ebp + 0x24], edi
je 0x75930340
push 0x75934428
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push dword [ebp - 0x220]
push 0x75924ddc
push dword [ebp - 0x228]
call fcn.759242fa
push 1
push dword [ebp - 0x21c]
push 0x75924b48
push dword [ebp - 0x228]
call fcn.759242fa
jmp 0x75930340
cmp eax, 0x55
mov dword [ebp - 0x224], 1
jne 0x75930348
push 4
pop eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x230]
push eax
push 0x20019
push edi
push 0x75926438
push 0x80000002
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x75930340
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x248]
push eax
push edi
push 0x75930424
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x75930334
jmp 0x75a3a1a8
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], edi
je 0x75930386
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x264], 1
call fcn.75937cd9
test eax, eax
jne 0x75924c07
xor edi, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x21c]
cmp eax, edi
je 0x759303aa
cmp word [eax], 0x5c
je 0x759303aa
push 0x75934428
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push dword [ebp - 0x238]
jmp 0x759303cb
mov eax, dword [ebp - 0x218]
push edx
add eax, 0x58
push eax
call fcn.75923884
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x75930410
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x75924c07
push edi
call fcn.759237a6
jmp 0x75924c07
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x75924c59
test edi, edi
je 0x75924ca2
push edi
call fcn.759237a6
jmp 0x75924ca2