Function at 0x414003
Capabilities:
Check os version

Disassembly:
mov eax, 0x428bb1
call fcn.0041cfb0
sub esp, 0xf04
push ebx
push esi
mov esi, ecx
push edi
push esi
push 0x44f
lea ecx, [ebp - 0x2c]
call fcn.00412611
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00412654
test eax, eax
je 0x4144fb
cmp dword [0x434a4c], ebx
jne 0x4144fb
push esi
push 0x452
lea ecx, [ebp - 0x1c]
call fcn.00404a99
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00404adc
test eax, eax
je 0x4144f0
cmp dword [0x434a4c], ebx
jne 0x4144f0
cmp dword [esi + 0x14b8], ebx
lea edi, [esi + 0x14b8]
lea eax, [esi + 0x290c]
mov ecx, esi
push eax
jne 0x4140b4
call fcn.00413b4f
push eax
lea eax, [esi + 0x10ac]
push dword [esi + 0xa8]
push eax
push edi
push 0x64
push 0xbba
push dword [esi + 0x37a0]
call fcn.0040a4f5
jmp 0x4140e0
call fcn.00413b4f
push eax
lea eax, [esi + 0x10ac]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x64
push 0xbba
push dword [esi + 0x37a0]
call fcn.0040a4f5
mov ecx, dword [edi]
mov dword [0x43547c], ecx
cmp eax, ebx
jne 0x4144f0
lea edi, [esi + 0x37b8]
push 0x64
push edi
push 0x42f47c
push 0x42f478
call fcn.00417972
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4141a9
push edi
lea ecx, [ebp - 0x108]
call fcn.00412744
cmp dword [0x435d3c], ebx
mov byte [ebp - 4], 2
jne 0x414168
cmp dword [0x435d38], ebx
jne 0x414168
push 0x4339d0
lea ecx, [ebp - 0x108]
call fcn.00412858
test al, al
jne 0x41419a
push dword [esi + 0x37a0]
lea ecx, [ebp - 0x108]
call fcn.0041282d
cmp byte [ebp - 0x100], bl
je 0x41419a
or dword [0x435d34], 0xffffffff
jmp 0x414186
push 0x4339d0
lea ecx, [ebp - 0x108]
call fcn.00412858
test al, al
jne 0x41419a
mov dword [0x435d34], 0x4b9
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 1
call fcn.004127ec
jmp 0x41436c
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 1
call fcn.004127ec
mov ecx, esi
call fcn.00413d0a
test eax, eax
je 0x4144f0
cmp dword [0x435d3c], ebx
jne 0x41427d
cmp dword [esi + 0x14b4], ebx
jne 0x41427d
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
mov byte [ebp - 0x508], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x508]
mov ecx, esi
push eax
push dword [0x43547c]
call fcn.00414e6f
test eax, eax
jne 0x414259
lea eax, [ebp - 0x508]
mov ecx, esi
push eax
push ebx
call fcn.00414e6f
test eax, eax
jne 0x414259
mov ecx, esi
call fcn.00414747
test eax, eax
je 0x414232
push 1
push ebx
push ebx
push ebx
push dword [0x42970c]
mov ecx, esi
call fcn.00414a89
jmp 0x414255
push dword [0x42970c]
lea eax, [ebp - 0x508]
push 0x435934
push eax
call fcn.00416c2c
lea eax, [ebp - 0x508]
push eax
call fcn.00416dd1
test eax, eax
je 0x41427d
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00401087
cmp eax, ebx
jne 0x41427d
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00414f84
mov dword [ebp - 0x10], eax
jmp 0x414280
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push dword [0x43547c]
call fcn.00417391
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x4142d3
lea eax, [ebp - 0x60c]
push eax
push dword [0x43547c]
call fcn.004175fd
pop ecx
mov eax, 0x4b8
pop ecx
mov dword [0x435d34], eax
lea ecx, [ebp - 0x60c]
push ecx
push eax
call fcn.004163df
pop ecx
pop ecx
jmp 0x41436c
lea edi, [esi + 0xcac]
push 0x400
push ebx
push edi
call fcn.0041cac0
add esp, 0xc
cmp dword [esi + 0x10ac], 1
jbe 0x41440c
cmp dword [esi + 0x14bc], 5
je 0x41440c
push 0x400
lea eax, [ebp - 0x508]
push ebx
push eax
call fcn.0041cac0
lea eax, [ebp - 0x508]
push 0xa
push eax
push dword [esi + 0x14b8]
call fcn.0041e329
push dword [0x42f2f8]
lea eax, [ebp - 0x508]
push eax
call fcn.0041c980
add esp, 0x20
lea eax, [ebp - 0x508]
mov ecx, esi
push eax
call fcn.00414764
test eax, eax
je 0x4143a5
lea eax, [ebp - 0x508]
push eax
push 0x432d8c
push edi
call fcn.00416c2c
mov ecx, esi
call fcn.00414a17
test eax, eax
jne 0x41438a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404ad1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00412649
xor eax, eax
jmp 0x41450b
push 1
push edi
push 0x42f468
mov ecx, esi
call fcn.00414cf4
mov dword [esi + 0xa0], 1
jmp 0x41440c
cmp byte [esi + 0x3212], bl
je 0x4143d0
lea eax, [ebp - 0x508]
push eax
lea eax, [esi + 0x3213]
push eax
push edi
call fcn.00416c2c
push 1
push edi
push 0x42f468
mov ecx, esi
call fcn.00414cf4
mov ecx, esi
call fcn.004146d6
test al, al
je 0x4143f7
mov ecx, esi
call fcn.0041469d
test al, al
je 0x4143f7
lea eax, [ebp - 0x508]
push edi
push eax
mov ecx, esi
call fcn.00414616
jmp 0x41440c
lea eax, [ebp - 0x508]
mov ecx, esi
push eax
call fcn.00413b4f
push eax
push edi
call fcn.00416c2c
cmp dword [ebp - 0x10], ebx
mov edi, 0x3e8
jne 0x414468
lea eax, [ebp - 0x710]
push 0x104
push eax
push 0x3e9
push dword [0x429714]
lea ecx, [esi + 0x3318]
push dword [0x429708]
call fcn.0040545b
push 4
mov edi, eax
call fcn.0041c5b8
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x41445c
mov ecx, eax
call fcn.00409d8c
jmp 0x41445e
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x3368], eax
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x3368]
push edi
push esi
push dword [esi + 0x37a0]
call fcn.00409db8
lea eax, [ebp - 0xb10]
push 0x400
push eax
push 0x44e
call fcn.004164bf
add esp, 0xc
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4144df
mov edi, 0x42e224
lea eax, [ebp - 0xb10]
push edi
push eax
call fcn.0041dfa0
pop ecx
cmp eax, ebx
pop ecx
je 0x4144df
inc eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4144df
push edi
push dword [ebp - 0x10]
call fcn.0041dfa0
pop ecx
cmp eax, ebx
pop ecx
jne 0x41451a
mov eax, 0x486
push eax
mov dword [0x435d34], eax
call fcn.004163df
pop ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404ad1
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00412649
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp - 0x94]
push eax
push 1
call fcn.0041768f
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push eax
lea eax, [esi + 0x4ac]
push eax
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0xf10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xf10]
mov ecx, esi
push eax
call fcn.00414724
mov ecx, dword [esi + 0x3368]
mov edi, 0x3e8
push edi
call fcn.0040a095
test eax, eax
je 0x414585
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00404ad1
push 1
pop esi
jmp 0x4144fd
push 0x44f
mov ecx, esi
call fcn.004146ff
mov ecx, esi
call fcn.00414cb8
test eax, eax
je 0x4144f0
mov ecx, dword [esi + 0x3368]
push edi
call fcn.0040a095
test eax, eax
jne 0x414572
push esi
push 0x451
lea ecx, [ebp - 0x7c]
call fcn.0040b3ae
mov ecx, dword [esi + 0x3368]
push edi
mov byte [ebp - 4], 4
call fcn.0040a095
test eax, eax
jne 0x414605
cmp dword [0x434a4c], ebx
jne 0x414605
lea ecx, [ebp - 0x7c]
call fcn.0040c6c0
test eax, eax
jne 0x4145f7
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040b403
jmp 0x4144f0
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x37ac], eax
call fcn.00409e1f
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040b403
jmp 0x414572