Function at 0x409c70
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4161d4
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 2
jne 0x409ca7
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 0x12
cmp eax, 4
jb 0x409caf
mov dword [esp + 0x10], 0x13
lea ebx, [esi + 0xcc]
lea ecx, [esp + 0x18]
push ebx
call fcn.00401080
mov eax, dword [esi + 0x24]
mov dword [esp + 0xac], 0
cmp eax, 1
jne 0x409d05
lea eax, [esp + 0x24]
push 0x1f
push eax
lea ecx, [esp + 0x20]
call fcn.00401780
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 1
call fcn.00401200
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 0
call fcn.00401100
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov dword [esp + 0x40], ecx
push edx
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00401080
and edi, 0x3ff
mov byte [esp + 0xac], 2
cmp di, 0x11
mov dword [esp + 0x3c], edi
jne 0x409d73
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x409d60
mov eax, dword [esi + 0x18]
cmp eax, 5
jae 0x409d6b
cmp eax, 4
jb 0x409d56
cmp dword [esi + 0x1c], 0xa
jae 0x409d6b
mov dword [esp + 0x40], 0x14
jmp 0x409d73
cmp eax, 2
jne 0x409d73
cmp dword [esi + 0x18], 5
jb 0x409d73
mov dword [esp + 0x10], 0x14
lea ecx, [esp + 0x14]
call fcn.00401810
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esp + 0xac], 3
mov edi, 2
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.004019d0
test eax, eax
mov dword [esp + 0x44], eax
jne 0x409dce
cmp word [esp + 0x3c], 0x11
jne 0x40a053
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004019d0
test eax, eax
mov dword [esp + 0x44], eax
je 0x40a053
lea ecx, [esp + 0x24]
call fcn.00401070
mov eax, edi
lea edx, [esp + 0x4c]
push eax
inc edi
push 0x41b84c
push edx
mov byte [esp + 0xb8], 4
mov dword [esp + 0x54], edi
call ebp
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esi
push 0
push eax
push edi
push str.StringId
call fcn.00406b60
test eax, eax
jne 0x409e1f
lea ecx, [esp + 0x24]
push ecx
push edi
mov ecx, esi
call fcn.00406ad0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x4c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [eax + edi + 0x104]
lea ecx, [esp + 0x20]
push edx
call fcn.00401340
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.004013a0
cmp dword [esi + 0x24], 1
jne 0x409ed4
mov ecx, dword [esi + 0xd0]
mov eax, dword [esp + 0x1c]
add ecx, eax
cmp ecx, 0x1f
jle 0x409ed4
mov edx, 0x1f
mov ecx, ebx
sub edx, eax
lea eax, [esp + 0x98]
push edx
push eax
call fcn.00401780
lea ecx, [esp + 0x18]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
mov byte [esp + 0xb8], 5
call fcn.004012b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 6
call fcn.00401200
lea ecx, [esp + 0x5c]
mov byte [esp + 0xac], 5
call fcn.00401100
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x98]
jmp 0x409f02
lea eax, [esp + 0x18]
lea ecx, [esp + 0x74]
push eax
push ebx
push ecx
call fcn.004012b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 7
call fcn.00401200
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x74]
call fcn.00401100
cmp word [esp + 0x3c], 0x11
jne 0x40a02b
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x24]
push 0
push edx
push edi
push str.StringId
mov ecx, esi
call fcn.00406b60
test eax, eax
jne 0x409f3c
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push edi
call fcn.00406ad0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x4c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + edi + 0x104]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401340
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x30]
push 0xffffffffffffffff
call fcn.004013a0
cmp dword [esi + 0x24], 1
jne 0x409ff2
mov ecx, dword [esi + 0xd0]
mov eax, dword [esp + 0x34]
lea edx, [eax + ecx]
cmp edx, 0x1f
jle 0x409ff2
mov ecx, 0x1f
lea edx, [esp + 0x68]
sub ecx, eax
push ecx
push edx
mov ecx, ebx
call fcn.00401780
lea ecx, [esp + 0x30]
lea edx, [esp + 0x8c]
push ecx
push eax
push edx
mov byte [esp + 0xb8], 8
call fcn.004012b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 9
call fcn.00401200
lea ecx, [esp + 0x8c]
mov byte [esp + 0xac], 8
call fcn.00401100
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x68]
jmp 0x40a026
lea eax, [esp + 0x30]
lea ecx, [esp + 0x80]
push eax
push ebx
push ecx
call fcn.004012b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 0xa
call fcn.00401200
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x80]
call fcn.00401100
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 3
call fcn.00401100
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x14]
push edx
call fcn.00401a00
mov edi, dword [esp + 0x48]
jmp 0x409d8f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xb4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 2
call fcn.004041a0
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 0
call fcn.00401100
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
call fcn.00401100
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 4