Function at 0x524a90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x59d414
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebp
cmp dword [ebp + 0xc], edi
jbe 0x524aee
call fcn.0056adc1
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x524afe
call fcn.0056adc1
mov eax, dword [ebp]
push edi
push ebx
push esi
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.0040b9e0
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov ebx, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.0051ad10
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x20]
push eax
xor edi, edi
push esi
mov ecx, ebx
mov dword [esp + 0x10c], edi
call edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub eax, ecx
sar eax, 2
xor ebp, ebp
cmp eax, edi
jbe 0x524f83
lea ebx, [edi + 0x10]
mov dword [esp + 0x38], 1
mov byte [esp + 0x17], 0
cmp ebp, eax
jb 0x524b7f
call fcn.0056adc1
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
cmp dword [eax + 0x24], 3
jne 0x524bc1
sub esi, ecx
sar esi, 2
cmp ebp, esi
jb 0x524b9a
call fcn.0056adc1
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + ebp*4]
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
call edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov byte [esp + 0x17], 1
cmp dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
jle 0x524f73
nop
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], edi
mov byte [esp + 0xc4], 0
mov eax, esi
sub eax, ecx
sar eax, 2
mov byte [esp + 0x104], 1
cmp ebp, eax
jb 0x524c0a
call fcn.0056adc1
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x20]
cmp dword [eax*4 + 0x5be910], 0xa
jne 0x524d22
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 2
call fcn.00501f10
mov ecx, dword [esp + 0x10c]
inc ecx
cmp byte [esp + 0x17], 0
mov byte [esp + 0x104], 3
mov dword [esp + 0x64], ecx
je 0x524c6a
mov esi, dword [esp + 0x18]
jmp 0x524c6d
or esi, 0xffffffff
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
sar edx, 2
cmp ebp, edx
jb 0x524c81
call fcn.0056adc1
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebp*4]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x20]
push esi
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.00503a20
push 2
push 0x5bf770
lea ecx, [esp + 0xc8]
call fcn.0040cab0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xcc]
call fcn.0040c9e0
mov edx, dword [esp + 0x10c]
push 0x20
lea eax, [edx + edx]
push eax
lea ecx, [esp + 0xc8]
call fcn.0040b3f0
push 1
push 0x5c8e04
lea ecx, [esp + 0xc8]
call fcn.0040cab0
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 2
call fcn.00501ca0
cmp dword [esp + 0xbc], ebx
jb 0x524d60
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0056a760
add esp, 4
jmp 0x524d60
cmp byte [esp + 0x17], 0
je 0x524d2f
mov edi, dword [esp + 0x18]
jmp 0x524d32
or edi, 0xffffffff
sub esi, ecx
sar esi, 2
cmp ebp, esi
jb 0x524d44
call fcn.0056adc1
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc0]
push edx
push edi
push eax
push ecx
call fcn.00503b00
add esp, 0x10
xor edi, edi
mov esi, 0xf
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], edi
mov byte [esp + 0xe0], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
sar edx, 2
mov byte [esp + 0x104], 4
cmp ebp, edx
jb 0x524da3
call fcn.0056adc1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + ebp*4]
sub ecx, eax
sar ecx, 2
cmp byte [edx + 0x28], 0
je 0x524e5a
cmp ebp, ecx
jb 0x524dc2
call fcn.0056adc1
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x4c]
push 0x5bf76c
push ecx
call fcn.0040e630
push 0x5bce34
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x11c], 5
call fcn.0040e290
add esp, 0x18
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x110], 6
call fcn.00404c50
cmp dword [esp + 0xbc], ebx
jb 0x524e27
mov eax, dword [esp + 0xa8]
push eax
call fcn.0056a760
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
mov byte [esp + 0x104], 4
cmp dword [esp + 0x60], ebx
jb 0x524e7c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0056a760
add esp, 4
jmp 0x524e7c
cmp ebp, ecx
jb 0x524e67
call fcn.0056adc1
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe8]
call fcn.00404c50
push 0x5bf768
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0040e290
lea ecx, [esp + 0xcc]
push ecx
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x11c], 7
call fcn.0043b4c0
add esp, 0x18
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x108], 8
call fcn.00404ae0
cmp dword [esp + 0xbc], ebx
jb 0x524edf
mov eax, dword [esp + 0xa8]
push eax
call fcn.0056a760
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x60], ebx
jb 0x524f08
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0056a760
add esp, 4
cmp dword [esp + 0xf4], ebx
jb 0x524f21
mov edx, dword [esp + 0xe0]
push edx
call fcn.0056a760
add esp, 4
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], edi
mov byte [esp + 0xe0], 0
mov byte [esp + 0x104], 0
cmp dword [esp + 0xd8], ebx
jb 0x524f58
mov eax, dword [esp + 0xc4]
push eax
call fcn.0056a760
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x524bd0
mov eax, esi
sub eax, ecx
inc ebp
sar eax, 2
cmp ebp, eax
jb 0x524b61
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
setne bl
cmp ecx, edi
je 0x524fb0
push ecx
call fcn.0056a760
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.0056a760
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0056ab51
add esp, 0xf4
ret