Function at 0x53497c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560b38
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push esi
push edi
mov eax, dword [0x569040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x10]
mov ecx, dword [esi + 0x20]
mov eax, 1
xor edx, edx
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x13], 0
call fcn.00520435
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x58], edx
xor edx, edx
cmp eax, edx
je 0x537221
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 8]
sar ecx, 8
test cl, 0x40
jne 0x537849
test cl, 2
jne 0x537846
mov ecx, dword [esi + 0x30]
cmp ecx, edx
je 0x537849
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + 8]
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 4]
mov edi, dword [esi + 0x1c]
mov edi, dword [edi + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 8]
sar ecx, 8
cmp dword [esi + 0x50], 0
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
push edi
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
setne cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp - 0x44]
push 1
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x4c]
push ecx
push edx
mov edx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x20]
mov ecx, eax
lea eax, [ebp - 0xd4]
call fcn.00533aeb
cmp byte [ebp - 0x11], 0
je 0x534aa5
cmp byte [ebp - 0x24], 0
jne 0x534aa5
mov eax, ebx
call fcn.00533b75
mov byte [ebp - 0x24], al
test al, al
jne 0x534b06
lea esi, [ebp - 0xd4]
mov edi, ebx
mov byte [ebp - 0x24], 0
call fcn.00534919
test al, al
je 0x534bfb
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax + 0x40]
xor edi, edi
cmp byte [ebp - 0x94], 0
mov dword [ebx + 0x9c], ecx
je 0x5b31a6
mov esi, dword [ebx + 0x94]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ecx + 8]
mov edx, dword [edx]
shr eax, 8
and al, 1
and byte [ebp - 0x12], al
mov byte [ebp - 0x13], 1
cmp ecx, edx
jne 0x54d674
lea eax, [ebp - 0xd4]
call fcn.00535387
test al, al
je 0x534a8b
mov esi, ebx
call fcn.00533bb7
test eax, eax
jne 0x579504
cmp byte [ebp - 0x83], 0
sete al
mov byte [ebp - 0x19], al
test al, al
je 0x5682b0
cmp byte [ebp - 0x84], 0
jne 0x61d88e
mov byte [ebp - 0x11], 0
push ebx
call fcn.00535557
test al, al
je 0x548d71
cmp byte [ebp - 0x19], 0
je 0x61d8ba
cmp byte [ebp - 0x11], 0
jne 0x61d8e6
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov esi, dword [ebx + 0x94]
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebx + 0x98]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebx + 0x90]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x7c], 0
call fcn.00533bfc
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x9c]
push edx
mov edx, dword [eax]
push 0
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea eax, [ebp - 0xe8]
call fcn.00533c1a
mov esi, eax
lea edi, [ebp - 0x7c]
call fcn.00535f4a
mov eax, dword [ebx + 0x90]
call fcn.005369b7
test al, al
jne 0x55d6f4
mov byte [ebp - 0x11], 0
jmp 0x534a8b
cmp byte [ebp - 0x12], 0
jne 0x61d912
xor eax, eax
mov byte [ebx + 8], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x2c], edx
jmp 0x5349e7
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x18], edx
jmp 0x534a1b
mov byte [ebp - 0x11], 1
jmp 0x534a8b
mov eax, dword [ebx + 0x154]
cmp eax, 0x14
jge 0x54d6b1
test dword [esi + 0x24], 0x200000
jne 0x560527
lea ecx, [eax + 1]
mov dword [ebx + 0x154], ecx
mov ecx, dword [ebx + 0x90]
cmp esi, edi
je 0x61d887
mov dword [ebx + eax*8 + 0xb4], esi
mov dword [ebx + eax*8 + 0xb8], ecx
mov edx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax]
jle 0x54d71b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x9c]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x407728
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x40238c
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x40], edi
jne 0x54d703
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov dword [eax + 0xc], edx
push edi
mov esi, ebx
call fcn.0054d5b4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call fcn.00535970
mov byte [ebp - 0x11], 1
jmp 0x534a8b
mov esi, dword [ebx + 0x90]
call fcn.0052badf
lea ecx, [ebx + 0xa8]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx + 8]
xor edi, edi
cmp dword [eax + 8], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x60], edx
jle 0x55d78b
add eax, 0xc
mov dword [ebp - 0x18], eax
jmp 0x55d75d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x55d76f
cmp byte [eax], 5
jne 0x57f009
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x20], eax
call fcn.0055d72e
mov edx, dword [ebp - 0x28]
add dword [ebp - 0x18], 4
inc edi
cmp edi, dword [edx + 8]
jl 0x55d75d
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov ebx, dword [ecx + 0x9c]
push 1
mov eax, 0xf
call fcn.0053901b
lea edx, [ebp - 0x20]
push edx
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x20], eax
call fcn.0055d72e
mov ebx, dword [ebp + 8]
jmp 0x534bf2
dec ecx
cmp edx, ecx
jge 0x54d6b1
jmp 0x54d68c
cmp dword [ebx + 0x1c], 0
je 0x57effa
push 1
mov esi, ebx
mov byte [ebp - 0x11], 0
call fcn.0054d5b4
jmp 0x534a8b
cmp eax, 1
push 1
sete byte [ebp - 0x11]
call fcn.0054d5b4
jmp 0x534a8b
cmp dword [ebx + 0x2c], 0
je 0x534b4a
jmp 0x5682ba
call 0x627dbf
int3
mov eax, dword [ebp - 0xc0]
cmp eax, edi
je 0x5b31b9
cmp byte [eax], 0xa
jne 0x57f009
mov edx, dword [eax + 0x4c]
shr edx, 6
test dl, 1
je 0x534adc
mov esi, ebx
call fcn.005b31d4
jmp 0x534adc