Function at 0x437370
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x597590
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
xor eax, eax
xor edx, edx
mov ebx, 1
mov word [esp + 0x69], ax
xor esi, esi
mov ecx, eax
mov byte [esp + 0x6b], al
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dl
mov byte [esp + 0x6b], bl
mov byte [esp + 0x6a], 0xff
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
cmp dword [ebp + 0x1b0], ebx
jne 0x437414
mov edi, dword [ebp + 0x74]
cmp edi, edx
je 0x437414
push edi
mov edi, dword [esp + 0x74]
mov eax, dword [edi]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 0x74]
lea ecx, [esp + 0x40]
push ecx
push 0x18
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
jmp 0x437418
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov edx, dword [edi]
push ebx
push eax
push ecx
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [eax]
push 0
push 0
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov edx, dword [edi]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x65e100], 0
jne 0x437464
push 0x623830
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x65e100], 1
cmp dword [0x623840], 2
jne 0x43747d
cmp dword [0x623834], 6
jne 0x43747d
mov eax, 1
jmp 0x43747f
xor eax, eax
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 0x214]
sete cl
push eax
mov eax, dword [ebp + 0x21c]
mov edi, 0x23
sub eax, 0x10
lea ebx, [edi - 0xf]
mov esi, 0x14b35c
lea ecx, [ecx*4 + 0x19]
push ecx
mov dword [esp + 0x70], esp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x70], esp
call fcn.004073f0
add eax, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov eax, esi
push ecx
lea esi, [esp + 0x2c]
call fcn.00437090
mov eax, dword [ebp + 0x210]
mov edi, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x220]
push ecx
mov dword [esp + 0x70], esp
sub eax, 0x10
add edi, 0x23
mov esi, 0x777777
mov dword [esp + 0x70], esp
call fcn.004073f0
add eax, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov eax, esi
push ecx
lea esi, [esp + 0x2c]
call fcn.00437090
mov eax, dword [ebp + 0x278]
cmp dword [eax - 0xc], 0
jne 0x437529
mov eax, 0x5d9f64
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.004066b0
mov dword [esp + 0x60], 0
mov eax, dword [ebp + 0x210]
push eax
lea eax, [ebp + 0x274]
push eax
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x74], esp
mov esi, esp
call fcn.004073f0
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x78]
add eax, 0x10
lea ecx, [ebp + 0x78]
push ecx
mov dword [esi], eax
mov eax, dword [esp + 0x80]
push edx
push eax
push ebp
mov edi, ebx
lea esi, [esp + 0x3c]
call fcn.004376e0
cmp dword [ebp + 0x218], 0
mov ecx, dword [eax]
mov dword [ebp + 0x1e8], ecx
mov edx, dword [eax + 4]
lea esi, [ebp + 0x1e8]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, 0x5dc74c
je 0x4375bb
mov ecx, dword [ebp + 0x270]
lea eax, [esp + 0x14]
push eax
call fcn.004066b0
mov eax, 1
mov byte [esp + 0x60], al
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x4375ee
cmp dword [ebp + 0x310], eax
je 0x4375ee
mov edx, 0x5d9f70
lea edi, [esp + 0x14]
call fcn.00406780
cmp dword [ebp + 0x218], 0
jne 0x437601
mov dword [esp + 0x6c], 0xe9a000
jmp 0x43760b
mov edx, dword [ebp + 0x26c]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x43765b
mov eax, dword [ebp + 0x210]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
lea eax, [esp + 0x74]
mov esi, ebx
lea edi, [esp + 0x38]
call fcn.00437150
mov edx, dword [eax]
mov dword [ebp + 0x1f8], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x1fc], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0x200], edx
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x204], eax
or esi, 0xffffffff
jmp 0x437676
or esi, 0xffffffff
mov dword [ebp + 0x1fc], esi
mov dword [ebp + 0x204], esi
mov dword [ebp + 0x200], esi
mov dword [ebp + 0x1f8], esi
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43769a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4376bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10