Function at 0x4028c6
Capabilities:
Check os version
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x4c], ebx
jne 0x4028f2
mov eax, 0x80004005
jmp 0x402b1a
call fcn.0040965a
test eax, eax
je 0x402905
call fcn.00426054
call fcn.00401ce0
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x402aa6
xor edi, edi
inc edi
cmp eax, edi
je 0x402aa6
cmp eax, 2
je 0x402aa6
cmp eax, 0xa
je 0x402aa6
cmp eax, 4
je 0x402a73
cmp eax, 5
je 0x402a73
cmp eax, 6
je 0x402a73
cmp eax, 0xc
je 0x402a73
cmp eax, 8
je 0x402a24
cmp eax, 0xe
je 0x402a24
cmp eax, 0xf
jne 0x402998
push ebx
mov eax, esi
call fcn.00403310
add eax, 0x1c
cmp dword [eax + 0x14], ebx
je 0x4028e8
push ebx
mov eax, esi
call fcn.00403310
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
call fcn.004034e3
jmp 0x402b18
cmp eax, 0x10
jne 0x4029b4
push edi
mov eax, esi
call fcn.00403310
add eax, 0x1c
cmp dword [eax + 0x14], ebx
je 0x4028e8
push edi
jmp 0x40297d
cmp eax, 0x11
jne 0x4029f2
push 2
mov eax, esi
call fcn.00403310
add eax, 0x1c
cmp dword [eax + 0x14], ebx
je 0x4028e8
push 2
mov eax, esi
call fcn.00403310
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
call fcn.004034e3
push ebx
call fcn.0042a8e7
pop ecx
jmp 0x402b18
push ebx
push esi
mov dword [esi + 0x18], ebx
call fcn.00402ffd
test eax, eax
jl 0x4028e8
push ebx
mov eax, esi
call fcn.00403310
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
call fcn.004034e3
push ebx
call fcn.0042a8e7
pop ecx
jmp 0x4029e6
push 2
push esi
call fcn.00402ffd
mov dword [ebp - 0x14], eax
call fcn.0040965a
test eax, eax
je 0x402a63
call fcn.00401e33
push 4
lea eax, [ebp - 0x18]
push eax
push 0x20001009
mov edi, 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x58
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [ebp - 0x14], ebx
jl 0x4028e8
push 2
jmp 0x40297d
push edi
push esi
call fcn.00402ffd
mov dword [ebp - 0x14], eax
lea eax, [ebp - 9]
mov byte [ebp - 9], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a86
sub eax, edi
je 0x402a96
call fcn.00409a52
cmp dword [ebp - 0x14], ebx
jl 0x4028e8
push 1
jmp 0x40297d
push ebx
push esi
call fcn.00402ffd
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
shr edi, 0x18
call fcn.0042a8e7
imul eax, eax, 0x63
pop ecx
cmp edi, eax
jbe 0x402ada
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00401d66
call fcn.0040c39c
cmp dword [ebp - 0x14], ebx
jl 0x4028e8
push ebx
mov eax, esi
call fcn.00403310
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
call fcn.004034e3
lea eax, [ebp - 9]
mov byte [ebp - 9], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402b03
sub eax, esi
je 0x402b18
call fcn.00401dad
call fcn.0040c137
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428d2e
leave
ret 4