Function at 0x58e0b4
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x94
push 0
push 0
dec ecx
jne 0x58e0bc
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x58e0d3
add esp, 0xfffffff0
call fcn.00403ebc
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x58e4cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403b28
mov eax, dword [0x5960cc]
mov eax, dword [eax]
xor edx, edx
call fcn.00465f20
mov byte [ebx + 4], 0
mov esi, 0xf
mov edi, 0xa
xor eax, eax
xor edx, edx
mov dl, al
mov byte [ebx + edx + 0x18], 0
inc eax
cmp eax, 0x19
jne 0x58e10d
push 0xff
lea eax, [ebp - 0x19c]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x36c]
lea edx, [ebp - 0x19c]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
lea eax, [ebp - 0x36c]
mov edx, 0x58e4fc
call fcn.00404c28
mov edx, dword [ebp - 0x36c]
lea eax, [ebx + 0x164]
mov ecx, 0xff
call fcn.00404bfc
mov al, byte [ebx + 0x165]
call fcn.00402b74
sub al, 0x41
mov byte [ebx + 8], al
push 0xff
lea eax, [ebp - 0x19c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x370]
lea edx, [ebp - 0x19c]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
lea eax, [ebp - 0x370]
mov edx, 0x58e4fc
call fcn.00404c28
mov edx, dword [ebp - 0x370]
lea eax, [ebx + 0x64]
mov ecx, 0xff
call fcn.00404bfc
lea edx, [ebp - 0x378]
mov eax, dword [0x5960cc]
mov eax, dword [eax]
call fcn.00466984
mov eax, dword [ebp - 0x378]
lea edx, [ebp - 0x374]
call fcn.0040990c
mov edx, dword [ebp - 0x374]
lea eax, [ebx + 0x264]
mov ecx, 0xff
call fcn.00404bfc
lea eax, [ebp - 0x37c]
lea edx, [ebx + 0x264]
call fcn.00404bc4
lea eax, [ebp - 0x37c]
mov edx, 0x58e508
call fcn.00404c28
mov edx, dword [ebp - 0x37c]
lea eax, [ebx + 0x464]
mov ecx, 0xff
call fcn.00404bfc
lea edx, [ebp - 0x380]
mov eax, dword [0x5960cc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00409940
mov edx, dword [ebp - 0x380]
lea eax, [ebx + 0x364]
mov ecx, 0xff
call fcn.00404bfc
mov byte [ebx + 7], 0
mov byte [ebx + 6], 0
call fcn.0040b458
fstp qword [ebx + 0x10]
wait
fld qword [ebx + 0x10]
call fcn.00402bc0
mov dword [ebx + 0x568], eax
mov eax, dword [0x5962f4]
mov eax, dword [eax]
call fcn.0048e554
test eax, eax
jge 0x58e2a1
mov edx, dword [ebx + 0x568]
mov eax, dword [0x5962f4]
mov eax, dword [eax]
call fcn.0048e4b4
jmp 0x58e2b3
mov eax, dword [0x5962f4]
mov eax, dword [eax]
call fcn.0048e554
mov dword [ebx + 0x568], eax
mov dword [ebx + 0x564], 0xffffffff
lea eax, [ebp - 0x388]
lea edx, [ebx + 0x264]
call fcn.00404bc4
push dword [ebp - 0x388]
lea eax, [ebp - 0x390]
lea edx, [esi + 0x64]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x390]
lea eax, [ebp - 0x38c]
call fcn.00404bc4
push dword [ebp - 0x38c]
lea eax, [ebp - 0x394]
lea edx, [edi + 0x64]
call fcn.00404b48
push dword [ebp - 0x394]
lea eax, [ebp - 0x384]
mov edx, 3
call fcn.00404ce0
mov eax, dword [ebp - 0x384]
mov edx, 0x40
call fcn.00409498
mov dword [ebx + 0x564], eax
lea edx, [ebp - 0x498]
mov eax, dword [0x5960cc]
mov eax, dword [eax]
call fcn.00465ed4
mov edx, dword [ebp - 0x498]
lea eax, [ebp - 0x494]
mov ecx, 0xff
call fcn.00404bfc
lea edx, [ebp - 0x494]
lea eax, [ebx + 0x31]
mov cl, 0x32
call fcn.00403024
lea edx, [ebp - 0x4a0]
mov eax, dword [0x5960cc]
mov eax, dword [eax]
call fcn.00466984
mov eax, dword [ebp - 0x4a0]
lea edx, [ebp - 0x49c]
call fcn.0040990c
mov edx, dword [ebp - 0x49c]
lea eax, [ebp - 8]
mov ecx, 0x58e518
call fcn.00404c6c
mov eax, dword [ebp - 8]
call fcn.0040962c
test al, al
je 0x58e41d
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x368]
call fcn.00402ec8
lea eax, [ebp - 0x368]
call fcn.00402c58
call fcn.00402910
lea edx, [ebp - 8]
lea eax, [ebp - 0x368]
call fcn.00403298
lea eax, [ebp - 0x368]
call fcn.00403304
call fcn.00402910
lea eax, [ebp - 0x368]
call fcn.00402f90
call fcn.00402910
lea eax, [ebp - 0x494]
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00404bfc
lea edx, [ebp - 0x494]
lea eax, [ebx + 0x31]
mov cl, 0x32
call fcn.00403024
cmp byte [ebx + 0x31], 0
jne 0x58e42f
lea edi, [ebx + 0x31]
mov esi, 0x58e530
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x4a4]
lea edx, [ebx + 0x31]
call fcn.00404bc4
mov edx, dword [ebp - 0x4a4]
mov eax, dword [0x5960cc]
mov eax, dword [eax]
call fcn.00465f20
lea eax, [ebp - 0x9c]
mov edx, 0x94
call fcn.00407c54
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x58e482
cmp dword [ebp - 0x98], 5
jbe 0x58e488
mov byte [ebx + 5], 1
jmp 0x58e48c
mov byte [ebx + 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58e4d4
lea eax, [ebp - 0x4a4]
mov edx, 4
call fcn.0040498c
lea eax, [ebp - 0x394]
call fcn.00404968
lea eax, [ebp - 0x38c]
mov edx, 9
call fcn.0040498c
lea eax, [ebp - 8]
call fcn.00404968
ret