Function at 0x6d59eda0
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov eax, 0x225c
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2258], eax
push esi
mov esi, dword [esp + 0x2264]
push edi
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x26a]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x26c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0xffe
push edx
lea eax, [esp + 0x1276]
push eax
mov word [esp + 0x1278], dx
call sub.MSVCR100.dll_memset
push str.SOFTWAREMozillaMozilla_Firefox
lea ecx, [esp + 0x27c]
push 0x800
push ecx
mov dword [esp + 0x30], 0x800
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 0x24
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x264]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x6d59ee5d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x225c
ret
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1268]
push edx
push 0
push 0
push str.CurrentVersion
push eax
call ebp
test eax, eax
je 0x6d59eeaa
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x225c
ret
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
lea eax, [esp + 0x1268]
push eax
lea ecx, [esp + 0x26c]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x26c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x6d59efd1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push eax
push str.Install_Directory
push edx
mov dword [esp + 0x2c], 0x800
call ebp
test eax, eax
je 0x6d59ef20
mov eax, dword [esp + 0x10]
push eax
call ebx
xor eax, eax
jmp 0x6d59efec
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6d59ef30
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x6d59ef64
lea edi, [esi - 2]
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x6d59ef50
mov edx, dword [0x6d5ce20c]
mov dword [edi], edx
lea eax, [esi - 2]
jmp 0x6d59ef70
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x6d59ef70
mov ecx, dword [str.extensions]
mov dword [eax], ecx
mov edx, dword [0x6d5cff18]
mov dword [eax + 4], edx
mov ecx, dword [0x6d5cff1c]
mov dword [eax + 8], ecx
mov edx, dword [0x6d5cff20]
mov dword [eax + 0xc], edx
mov ecx, dword [0x6d5cff24]
mov dword [eax + 0x10], ecx
mov dx, word [0x6d5cff28]
mov word [eax + 0x14], dx
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x6d59efd5
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x6d59efe7
xor eax, eax
jmp 0x6d59efec
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [esp + 0x18], 0x10
je 0x6d59ef19
mov eax, 1
mov ecx, dword [esp + 0x2268]
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x225c
ret