Function at 0x40102d
Capabilities:
Access the windows event log
Get disk information
Query or enumerate registry key
Read .ini file

Disassembly:
jmp 0x4011d0
mov eax, 0x1848
call fcn.00403f30
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
push str.kernel32.dll
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x46a5c0
mov dl, 0x63
mov cl, 0x6c
push eax
mov dword [0x46bfa0], eax
mov byte [0x46a5c9], dl
mov dword [0x46a5c0], 0x61636f4c
mov dword [0x46a5c5], 0x6f6c6c41
mov byte [0x46a5c4], cl
mov byte [0x46a5ca], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46bf94], eax
mov ecx, dword [esi]
push ecx
push 0
call eax
mov edx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
mov ebp, eax
cmp dword [edx], esi
jbe 0x401415
nop
xor ecx, ecx
mov dword [0x46a484], ecx
mov eax, dword [ebx]
movzx edx, byte [eax + edi]
mov byte [esp + 0x12], dl
movzx edx, byte [eax + edi + 1]
mov al, byte [eax + edi + 2]
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov dword [esp + 0x1c], ecx
sub dword [esp + 0x1c], 0x789ec46a
cmp dword [0x46bfa4], 0xb1
mov ecx, dword [esp + 0x1c]
mov dword [0x46a5b8], ecx
mov edx, dword [ebx]
mov bl, byte [edx + edi + 3]
jne 0x4012d3
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x85c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
mov dl, bl
and dl, 0xf0
mov al, bl
add dl, dl
and al, 0xfc
add dl, dl
or byte [esp + 0x12], dl
shl al, 4
or byte [esp + 0x11], al
cmp dword [0x46bfa4], 0x2c5
mov dword [0x441ca8], 0xa810d550
jne 0x401326
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [0x46bfa4], 0x6ac
jne 0x40134a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
xor eax, eax
shl bl, 6
cmp dword [0x46bfa4], 0x30d
mov dword [0x46a488], eax
mov dword [0x46a48c], eax
jne 0x4013a1
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x860]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x106c]
push edx
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dl, byte [esp + 0x12]
mov al, byte [esp + 0x11]
mov byte [esi + ebp], dl
and bl, 0xc0
or byte [esp + 0x13], bl
mov byte [esi + ebp + 1], al
cmp dword [0x46bfa4], 0x708
mov dword [0x46bf98], 0xcef226d6
mov dword [0x46bf9c], 0xffffffff
jne 0x4013f7
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x864]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov byte [esi + ebp + 2], cl
add edi, 4
add esi, 3
cmp edi, dword [edx]
jb 0x401250
cmp dword [0x46bfa4], 0xdd1
jne 0x401459
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 0
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebx], ebp
cmp dword [0x46bfa4], 0x691
jne 0x401497
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x1848
ret
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x1848
ret