Function at 0x437612
Capabilities:
Check os version

Disassembly:
push 0x10c
mov eax, 0x50a8a1
call fcn.005060cc
mov esi, ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x437646
mov edi, 0x51eb64
push edi
call fcn.004f5d90
pop ecx
push eax
push edi
lea ecx, [ebp + 8]
call fcn.0040a860
xor ebx, ebx
inc ebx
cmp dword [0xd5b26c], 0
jne 0x4376c8
cmp dword [0xd5b274], 0
mov dword [0xd5b26c], ebx
jne 0x4376a8
push 0x90
lea eax, [ebp - 0xe0]
mov dword [0xd5b274], ebx
push 0
push eax
mov dword [ebp - 0xe4], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
imul eax, dword [ebp - 0xe0], 0xa
add eax, dword [ebp - 0xdc]
mov dword [0xd5b270], eax
jmp 0x4376ad
mov eax, dword [0xd5b270]
cmp eax, 0x3c
jl 0x4376bf
call fcn.00426031
test eax, eax
jne 0x4376bf
mov eax, ebx
jmp 0x4376c1
xor eax, eax
mov dword [0xd5b268], eax
jmp 0x4376cd
mov eax, dword [0xd5b268]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
test eax, eax
je 0x437cb4
call edi
cmp eax, 5
jne 0x437cb4
push 0x5c
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], 0x60
push 0
push eax
call fcn.004f1a90
xor edx, edx
lea ecx, [ebp - 0xb0]
inc edx
call fcn.0046e824
push 0x51e630
call fcn.004f5d90
add esp, 0x10
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x437732
and dword [ebp - 0x9c], 0
jmp 0x43774f
lea eax, [esi + esi]
call fcn.004f0800
mov ecx, esp
mov edx, 0x51e630
push 0
push esi
call fcn.00407760
mov dword [ebp - 0x9c], eax
call fcn.00409736
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040953f
mov byte [ebp - 4], 1
call fcn.00409736
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040953f
mov byte [ebp - 4], 2
call fcn.00409736
push eax
lea ecx, [ebp - 0x10c]
call fcn.0040953f
mov byte [ebp - 4], 3
call fcn.00409736
push eax
lea ecx, [ebp - 0x108]
call fcn.0040953f
mov byte [ebp - 4], 4
call fcn.00409736
push eax
lea ecx, [ebp - 0x104]
call fcn.0040953f
mov byte [ebp - 4], 5
call fcn.00409736
push eax
lea ecx, [ebp - 0x100]
call fcn.0040953f
mov byte [ebp - 4], 6
call fcn.00409736
push eax
lea ecx, [ebp - 0x110]
call fcn.0040953f
mov byte [ebp - 4], 7
call fcn.00409736
push eax
lea ecx, [ebp - 0x114]
call fcn.0040953f
mov esi, 0x100
mov byte [ebp - 4], 8
mov eax, esi
mov dword [ebp - 0xa0], 8
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0x2c9
push dword [0xd584c8]
call fcn.004e1a81
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437830
push esi
call fcn.004f5d90
pop ecx
push eax
push esi
lea ecx, [ebp - 0xf0]
call fcn.0040942f
call edi
mov edx, eax
lea ecx, [ebp - 0xf8]
call fcn.0042275b
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xec]
call fcn.0040a740
pop ecx
mov edi, dword [eax]
test edi, edi
je 0x43787e
push edi
call fcn.004f5d90
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x437887
and dword [ebp - 0x94], 0
jmp 0x4378a1
lea eax, [esi + esi]
call fcn.004f0800
mov ecx, esp
mov edx, edi
push 0
push esi
call fcn.00407760
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0xec]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4378be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0xf8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4378df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 0x400
mov eax, edi
call fcn.004f0800
mov esi, esp
lea ecx, [ebp - 0xec]
push 0x51e630
call fcn.004094e6
mov byte [ebp - 4], 0xa
push dword [eax]
push 0x2cb
push dword [0xd584c8]
push edi
push esi
call fcn.004e1ab9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x437930
push edi
call fcn.004f5d90
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x437939
and dword [ebp - 0x90], 0
jmp 0x437953
lea eax, [esi + esi]
call fcn.004f0800
mov ecx, esp
mov edx, edi
push 0
push esi
call fcn.00407760
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0xec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437974
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0x50], 0x64
test esi, esi
je 0x437997
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x43799d
and dword [ebp - 0x4c], 0
jmp 0x4379b4
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp - 0xe8]
mov dword [ebp - 0x48], 0x65
test esi, esi
je 0x4379d7
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x4379dd
and dword [ebp - 0x44], 0
jmp 0x4379f4
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0x40], 0x66
test esi, esi
je 0x437a17
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x437a1d
and dword [ebp - 0x3c], 0
jmp 0x437a34
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x108]
mov dword [ebp - 0x38], 0x67
test esi, esi
je 0x437a57
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x437a5d
and dword [ebp - 0x34], 0
jmp 0x437a74
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x104]
mov dword [ebp - 0x30], 0x68
test esi, esi
je 0x437a97
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x437a9d
and dword [ebp - 0x2c], 0
jmp 0x437ab4
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x100]
mov dword [ebp - 0x28], 0x69
test esi, esi
je 0x437ad7
push esi
call fcn.004f5d90
pop ecx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x437add
and dword [ebp - 0x24], 0
jmp 0x437af4
lea eax, [edi + edi]
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push edi
call fcn.00407760
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x110]
mov dword [ebp - 0x20], 0x6a
test edi, edi
je 0x437b17
push edi
call fcn.004f5d90
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x437b1d
and dword [ebp - 0x1c], 0
jmp 0x437b34
lea eax, [esi + esi]
call fcn.004f0800
mov ecx, esp
mov edx, edi
push 0
push esi
call fcn.00407760
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x18], 0x6b
test esi, esi
je 0x437b5a
push esi
call fcn.004f5d90
inc eax
mov dword [ebp - 0xec], eax
pop ecx
cmp eax, 0x3fffffff
jle 0x437b60
and dword [ebp - 0x14], 0
jmp 0x437b7b
add eax, eax
call fcn.004f0800
mov ecx, esp
mov edx, esi
push 0
push dword [ebp - 0xec]
call fcn.00407760
mov dword [ebp - 0x14], eax
and dword [ebp - 0xfc], 0
lea eax, [ebp - 0x50]
and dword [ebp - 0xf4], 0
lea edx, [ebp - 0xfc]
and dword [ebp - 0x118], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0046e85f
cmp dword [ebp - 0xfc], 0x64
pop ecx
pop ecx
jne 0x437bca
xor edx, edx
call fcn.004047c8
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x437be5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x437c00
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x100]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x104]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x10c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437ca5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xf0]
jmp 0x437d3c
call edi
test eax, eax
jne 0x437cc7
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x437d53
test esi, esi
jne 0x437cdc
mov esi, dword [0xd58f54]
test esi, esi
je 0x437cda
mov esi, dword [esi + 4]
jmp 0x437cdc
xor esi, esi
call edi
mov edx, eax
lea ecx, [ebp - 0xe8]
call fcn.0042275b
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.0040a740
pop ecx
push pe_nt_image_headers32
push 0x51e630
push dword [eax]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0xf4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437d32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xe8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437d53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x437d6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0x128]
call fcn.00506076
ret