Function at 0x401b36
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
call fcn.00401262
test eax, eax
je 0x401b7a
mov esi, 0x104
push esi
call fcn.00401000
cmp eax, ebx
pop ecx
mov dword [0x406814], eax
je 0x401b7a
mov edi, 0x2c8
push edi
call fcn.00401000
cmp eax, ebx
pop ecx
mov dword [0x40681c], eax
jne 0x401b84
call fcn.004011af
jmp 0x401dc0
mov eax, dword [0x406814]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 1
mov byte [eax], bl
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push dword [0x406814]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x405032], ebx
jne 0x401bf0
push dword [0x405008]
push ebx
call fcn.004011df
pop ecx
pop ecx
jmp 0x401db9
push str.GKSSFX200
push dword [0x40680c]
push dword [0x406808]
call fcn.00401113
add esp, 0xc
test eax, eax
jne 0x401c15
push dword [section..data]
jmp 0x401be3
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push dword [0x406810]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x405032]
cmp eax, ecx
jne 0x401c3b
push dword [0x405010]
jmp 0x401c6c
push ebx
push ebx
push ecx
push dword [0x406810]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
push edi
push dword [0x40681c]
push dword [0x406810]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], edi
je 0x401c78
push str.ReadFile_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x401be4
mov eax, dword [0x40681c]
add eax, 0x14
mov cl, byte [eax]
cmp cl, bl
je 0x401c95
cmp cl, 0xff
jne 0x401ca5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x401c9d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x40681c]
mov dword [eax + 0x10], ebx
mov eax, dword [0x40681c]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x40681c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [eax + 0x10], ebx
je 0x401cfa
add eax, 0x14
push eax
lea eax, [ebp - 0x11c]
push dword [0x406814]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [0x40681c]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x40681c]
push 4
push str.2.00
push eax
call fcn.00401075
add esp, 0xc
test eax, eax
je 0x401d18
call fcn.004011c7
jmp 0x401dc0
mov eax, dword [0x40681c]
mov ecx, dword [0x405032]
mov edx, dword [eax + 4]
lea edi, [edx + ecx + 0x2c8]
mov edx, dword [0x40680c]
cmp edx, edi
je 0x401d55
mov eax, dword [eax + 4]
mov edi, eax
sub edi, edx
lea eax, [eax + ecx + 0x2c8]
lea edx, [edi + ecx + 0x2c8]
push edx
push eax
push str.This_self_extracting_file_is_incomplete._The_total_filesize_should_be:__u_bytes.__d_bytes_missing.
jmp 0x401da0
mov edx, dword [0x406808]
mov dword [ebp - 8], ebx
cmp dword [eax + 4], ebx
mov dword [ebp - 4], ebx
lea edi, [edx + ecx + 0x2c8]
jbe 0x401d8f
mov eax, dword [ebp - 4]
mov al, byte [eax + edi]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004020a5
inc dword [ebp - 4]
mov eax, dword [0x40681c]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 4]
jb 0x401d6d
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
je 0x401dbd
push ecx
push dword [eax + 8]
push str.The_data_section_of_this_self_extracting_file_has_been_damaged._n_CRC_Error:Should_be:_08X__is:_08X_
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.004011df
add esp, 0x18
xor eax, eax
jmp 0x401dc0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret