Function at 0x42e980
Capabilities:
Check os version

Disassembly:
sub esp, 0x68
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x48], eax
mov eax, dword [0x62271c]
lea ebp, [eax*4]
mov eax, dword [ecx + ebp]
cmp byte [eax + 0x2198], 0
jne 0x42ea33
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp byte [eax + 0x2198], 0
mov edx, dword [eax + 0x214]
mov dword [esp + 0x1c], edx
jne 0x42ea55
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
xor ebx, ebx
mov edi, dword fs:[0x24]
xor esi, esi
mov ecx, dword [eax + 0x298]
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x2198], bl
jne 0x42ea7a
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp dword [eax + 0x250], edi
mov edi, dword [esp + 0xa8]
jne 0x42eabe
test edi, edi
je 0x42eb65
cmp byte [eax + 0x2198], bl
jne 0x42eaaf
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp edi, dword [eax + 0x250]
je 0x42eb65
test edi, edi
je 0x42eb57
xor ecx, ecx
mov eax, 0x52b6d4
nop dword [eax]
cmp dword [eax], edi
je 0x42eaea
add eax, 0x1c
inc ecx
cmp eax, 0x5326d4
jl 0x42ead0
mov dword [0x2c], ebx
jmp 0x42edf3
mov esi, dword fs:[0x18]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x52b6d8]
mov ebx, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp byte [eax + 0x2198], 0
jne 0x42eb26
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp byte [eax + 0x2198], 0
mov edx, dword [eax + 0x214]
mov dword [esp + 0x1c], edx
jne 0x42eb48
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
mov edi, dword [eax + 0x298]
mov dword [esp + 0x10], edi
jmp 0x42eb69
mov esi, dword fs:[0x18]
mov eax, dword [0x52b6d8]
jmp 0x42eb01
mov edi, dword [esp + 0x10]
cmp byte [eax + 0x2198], 0
jne 0x42eb7e
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp dword [eax + 0x298], 0
je 0x42edec
cmp byte [edi + 0x6d4], 0
je 0x42edec
push 0
push dword [esp + 0x18]
mov ecx, edi
call fcn.0045cbf0
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x42edec
lea eax, [esp + 0x24]
xor edi, edi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x70], eax
nop dword [eax + eax]
mov eax, dword [esp + edi*4 + 0x4c]
cmp dword [eax], 0
je 0x42ec1f
inc edi
cmp edi, 0xa
jl 0x42ec10
mov dword [esp + 0x20], edi
cmp edi, dword [ecx + 0x38]
jge 0x42ec41
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push str.Too_few_parameters_passed_to_function.
call fcn.0046cf30
test ebx, ebx
jmp 0x42edee
test esi, esi
je 0x42ec48
mov dword [esi + 0x2c], ebx
mov eax, 1
lock xadd word [0x527684], ax
inc ax
and eax, 0xfff
imul ebx, eax, 0xf0
add ebx, 0x5326f0
mov dword [esp + 0x10], ebx
cmp dword [ebx], 0
jne 0x42ed70
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x2a
call esi
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x42ec9a
push 0x28
call esi
add esp, 4
mov dword [ebx + 0xb0], eax
test eax, eax
jne 0x42eca4
push 0
call fcn.004654c0
add esp, 4
mov eax, dword [ebx]
mov edi, dword [esp + 0x10]
mov dword [ebx + 0xd8], eax
add ebx, 8
mov dword [esp + 0x14], 0
nop dword [eax + eax]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
cmp byte [eax + 0x2198], 0
jne 0x42ecdf
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp]
push 0x1c
mov ecx, dword [eax + 0x260]
call fcn.004df940
mov esi, eax
test esi, esi
je 0x42ed32
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + ebp]
cmp byte [ecx + 0x2198], 0
jne 0x42ed0d
call fcn.004ebad3
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x1000102
mov dword [esi + 0x18], 0x4f5b70
mov dword [esi + 8], 0x4f5b70
jmp 0x42ed34
xor esi, esi
mov edx, dword [esp + 0x14]
mov dword [ebx + 8], 4
mov dword [ebx], esi
mov dword [ebx + 4], 0
mov eax, dword [edi + 0xb0]
mov dword [edx + eax], ebx
add edx, 4
add ebx, 0x10
mov dword [esp + 0x14], edx
cmp edx, 0x28
jl 0x42ecc0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x34]
cmp eax, edi
jge 0x42ed7d
cmp byte [ecx + 0x3c], 0
je 0x42ed7f
mov eax, edi
mov byte [ebx + 0xe8], al
lea ebp, [ebx + 8]
mov ebx, dword [esp + 0x18]
xor esi, esi
nop
cmp dword [ebx + 0x34], esi
jg 0x42ed9b
cmp byte [ebx + 0x3c], 0
je 0x42edb7
cmp edi, esi
jle 0x42edb7
mov eax, dword [esp + esi*4 + 0x4c]
mov ecx, dword [ebp]
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.004e6f40
inc esi
add ebp, 0x10
jmp 0x42ed90
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
push ebx
push 0x423
push dword [esp + 0x28]
mov dword [ebx + 0xa8], eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ebadf
add esp, 0x68
ret
test esi, esi
je 0x42edf3
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x74]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x68
ret