Function at 0x42dfe0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], eax
mov eax, dword [0x62271c]
lea edi, [eax*4]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x42e096
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
mov edx, dword [eax + 0x214]
mov dword [esp + 0x20], edx
jne 0x42e0b8
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
xor ebx, ebx
mov esi, dword fs:[0x24]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov ebp, dword [eax + 0x298]
mov dword [esp + 0x10], ebp
cmp byte [eax + 0x2198], cl
jne 0x42e0e5
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp dword [eax + 0x250], esi
mov esi, dword [esp + 0xb4]
jne 0x42e129
test esi, esi
je 0x42e1e8
cmp byte [eax + 0x2198], bl
jne 0x42e11a
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp esi, dword [eax + 0x250]
je 0x42e1e8
test esi, esi
je 0x42e1da
xor ecx, ecx
mov eax, 0x52b6d4
cmp dword [eax], esi
je 0x42e165
add eax, 0x1c
inc ecx
cmp eax, 0x5326d4
jl 0x42e138
pop edi
pop esi
pop ebp
mov dword [0x2c], ebx
mov eax, 0x4f5b70
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ebadf
add esp, 0x74
ret
mov ebx, dword fs:[0x18]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*4 + 0x52b6d8]
mov esi, dword [ebx + 0x2c]
mov dword [ebx + 0x2c], eax
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x42e1a9
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
mov edx, dword [eax + 0x214]
mov dword [esp + 0x20], edx
jne 0x42e1cb
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
mov ebp, dword [eax + 0x298]
mov dword [esp + 0x10], ebp
jmp 0x42e1ea
mov ebx, dword fs:[0x18]
mov eax, dword [0x52b6d8]
jmp 0x42e17c
xor esi, esi
cmp byte [eax + 0x2198], 0
jne 0x42e1ff
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp dword [eax + 0x298], 0
je 0x42e49e
cmp byte [ebp + 0x6d4], 0
je 0x42e49e
push 0
push dword [esp + 0x2c]
mov ecx, ebp
call fcn.0045cbf0
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x42e47f
mov ecx, 1
lock xadd word [0x527684], cx
inc cx
and ecx, 0xfff
imul ebp, ecx, 0xf0
add ebp, 0x5326f0
mov dword [esp + 0x54], ebp
cmp dword [ebp], 0
jne 0x42e358
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x2a
call esi
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x42e28c
push 0x28
call esi
add esp, 4
mov dword [ebp + 0xb0], eax
test eax, eax
jne 0x42e296
push 0
call fcn.004654c0
add esp, 4
mov eax, dword [ebp]
lea ebx, [ebp + 8]
mov dword [ebp + 0xd8], eax
mov dword [esp + 0x24], 0
nop word [eax + eax]
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x42e2cf
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
push 0x1c
mov ecx, dword [eax + 0x260]
call fcn.004df940
mov esi, eax
test esi, esi
je 0x42e322
mov ecx, dword fs:[0x2c]
mov ecx, dword [edi + ecx]
cmp byte [ecx + 0x2198], 0
jne 0x42e2fd
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 0x42e324
xor esi, esi
mov edx, dword [esp + 0x24]
mov dword [ebx + 8], 4
mov dword [ebx], esi
mov dword [ebx + 4], 0
mov eax, dword [ebp + 0xb0]
mov dword [edx + eax], ebx
add edx, 4
add ebx, 0x10
mov dword [esp + 0x24], edx
cmp edx, 0x28
jl 0x42e2b0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x7c], eax
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0x58]
cmp dword [eax], 0
je 0x42e3bf
inc esi
cmp esi, 0xa
jl 0x42e3b0
cmp esi, dword [edx + 0x38]
jge 0x42e3ee
push dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push str.Too_few_parameters_passed_to_function.
call fcn.0046cf30
pop edi
pop esi
pop ebp
mov eax, 0x4f5b70
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ebadf
add esp, 0x74
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42e3fd
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x2c], ecx
mov eax, dword [edx + 0x34]
cmp eax, esi
jge 0x42e40a
cmp byte [edx + 0x3c], 0
je 0x42e40c
mov eax, esi
mov byte [ebp + 0xe8], al
lea ebx, [ebp + 8]
mov ebp, dword [esp + 0x1c]
xor edi, edi
nop dword [eax + eax]
cmp dword [ebp + 0x34], edi
jg 0x42e42b
cmp byte [ebp + 0x3c], 0
je 0x42e446
cmp esi, edi
jle 0x42e446
mov eax, dword [esp + edi*4 + 0x58]
mov ecx, dword [ebx]
push 0
push 0xffffffffffffffff
push dword [eax]
call fcn.004e6f40
inc edi
add ebx, 0x10
jmp 0x42e420
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
push 0
push ebp
push 0x423
push dword [esp + 0x2c]
mov dword [ebp + 0xa8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ebadf
add esp, 0x74
ret
test ebx, ebx
je 0x42e486
mov dword [ebx + 0x2c], esi
pop edi
pop esi
pop ebp
mov eax, 0x4f5b70
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ebadf
add esp, 0x74
ret
test ebx, ebx
je 0x42e4a5
mov dword [ebx + 0x2c], esi
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x74
ret