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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x41
mov edi, 0x7637d8
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x7638e0
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x7639e8
xor ebx, ebx
rep stosd dword es:[edi], eax
xor esi, esi
lea esp, [esp]
push esi
mov ecx, 0x763af0
call fcn.004f2090
mov edi, eax
xor eax, eax
inc esi
cmp esi, 5
mov ecx, 0x41
rep stosd dword es:[edi], eax
jl 0x4f2310
push 0x7637d8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4f2357
push 0x5b7838
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x14
call fcn.0053fb12
push 0x7637d8
call fcn.004f1e60
mov al, byte [ebp + 8]
add esp, 4
cmp al, bl
jne 0x4f23c3
mov edx, dword [ebp + 0xc]
cmp edx, ebx
je 0x4f243f
mov eax, edx
lea esi, [eax + 1]
jmp 0x4f2380
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4f2380
sub eax, esi
mov dword [esp + 0xc], eax
je 0x4f243f
xor eax, eax
push edx
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push 0x103
push 0x7638e0
call fcn.00540643
add esp, 0x14
mov byte [0x7639e3], bl
push 0x7638e0
call fcn.004f1e60
push str.Automap
push 0x5c
push 0x7638e0
push str._s_c_s
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call fcn.00540643
lea edx, [esp + 0x134]
push ebx
push edx
mov byte [esp + 0x23f], bl
call fcn.00540c03
add esp, 0x24
test eax, eax
je 0x4f2513
lea eax, [esp + 0x118]
push eax
call fcn.00540c78
add esp, 4
test eax, eax
je 0x4f2513
push 0x5b7838
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x17
call fcn.0053fb12
call fcn.004f1eb0
test al, al
je 0x4f2469
push 0x7637d8
push 0x59758c
push 0x104
push 0x7638e0
call fcn.00540643
add esp, 0x10
jmp 0x4f23bd
push 1
push 0x1a
lea edx, [esp + 0x18]
push edx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4f24a1
push 0x5b7838
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x16
call fcn.0053fb12
lea ecx, [esp + 0x10]
push ecx
call fcn.004f1e60
push str.dbkfo
push 0x5c
lea edx, [esp + 0x1c]
push edx
push str._s_c_s
push 0x104
push 0x7638e0
call fcn.00540643
push ebx
push 0x7638e0
mov byte [0x7639e3], bl
call fcn.00540c03
add esp, 0x24
test eax, eax
je 0x4f23c3
push 0x7638e0
call fcn.00540c78
add esp, 4
test eax, eax
je 0x4f23c3
push 0x5b7838
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x17
call fcn.0053fb12
lea edx, [esp + 0x118]
push edx
call fcn.004f1e60
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4f258a
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4f2554
cmp eax, 1
jne 0x4f258a
push 0x7637d8
push 0x59758c
push 0x104
push 0x7639e8
call fcn.00540643
add esp, 0x10
mov byte [0x763aeb], bl
push 0x7639e8
call fcn.004f1e60
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0x23
push 0x7639e8
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4f2576
push 0x5b7838
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x15
call fcn.0053fb12
int3