Function at 0x4b5d00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525c40
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x228
mov eax, dword [0x57e9a8]
xor eax, ebp
mov dword [ebp - 0x48], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 0x15c]
mov dword [eax], vtable.MessageLog::CLogWnd.0
mov ecx, dword [ebp - 0x15c]
add ecx, 4
call fcn.004bacb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x15c]
add ecx, 0x10
call fcn.004bacb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x15c]
add ecx, 0x1c
call fcn.004bacb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.004bacb0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x15c]
add ecx, 0x34
call fcn.004bacb0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x15c]
add ecx, 0x44
call fcn.004bacb0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x15c]
add ecx, 0x54
call fcn.004127c0
mov ecx, dword [ebp - 0x15c]
add ecx, 0x68
call fcn.004140d0
mov ecx, dword [ebp - 0x15c]
add ecx, 0x70
call fcn.004bacb0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
call fcn.00413fc0
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0x160]
call fcn.004391c0
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00418e30
push 0x24
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0xf0], edx
mov byte [ebp - 4], 8
cmp dword [ebp - 0xf0], 0
je 0x4b5e65
mov ecx, dword [ebp - 0xf0]
call fcn.00414040
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
jmp 0x4b5e6f
mov dword [ebp - 0x170], 0
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 4
call fcn.00428d80
mov ecx, dword [ebp - 0x15c]
add ecx, 4
call fcn.0041da00
mov dword [ebp - 0x174], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x174]
call fcn.004148c0
mov byte [ebp - 0x175], al
movzx edx, byte [ebp - 0x175]
test edx, edx
jne 0x4b5eeb
mov dword [ebp - 0xf4], 2
push 0x557c48
lea eax, [ebp - 0xf4]
push eax
call fcn.00509f58
call fcn.00415190
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
call fcn.0043ba60
mov dword [ebp - 0x180], eax
push 0
mov ecx, dword [ebp - 0x180]
call fcn.004173b0
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x188], ecx
push 0
mov ecx, dword [ebp - 0x15c]
add ecx, 4
call fcn.004853d0
mov dword [ebp - 0x18c], eax
push 0
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x188]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x188]
mov eax, dword [edx + 4]
call eax
push 0x24
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 9
cmp dword [ebp - 0xfc], 0
je 0x4b5fa0
mov ecx, dword [ebp - 0xfc]
call fcn.00414040
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
jmp 0x4b5faa
mov dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 7
push 1
mov ecx, dword [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043bcf0
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.0041da00
mov dword [ebp - 0x1a0], eax
push 0
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1a0]
call fcn.004148c0
mov byte [ebp - 0x1a1], al
movzx ecx, byte [ebp - 0x1a1]
test ecx, ecx
jne 0x4b6026
mov dword [ebp - 0x100], 2
push 0x557c48
lea edx, [ebp - 0x100]
push edx
call fcn.00509f58
push 0x80
push 0
push 0
push 0
call fcn.00413fd0
add esp, 0x10
mov dword [ebp - 0x1a8], eax
lea ecx, [ebp - 0x1c]
call fcn.0041da00
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1ac]
call fcn.00414020
lea ecx, [ebp - 0x1c]
call fcn.0041da00
mov dword [ebp - 0x1b0], eax
push 0
mov ecx, dword [ebp - 0x1b0]
call fcn.00414990
push 0
lea ecx, [ebp - 0x1c]
call fcn.004853d0
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 4
call fcn.0041da00
mov dword [ebp - 0x1b8], eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1b4]
push ecx
mov ecx, dword [ebp - 0x1b8]
call fcn.0043a7b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00427140
call fcn.00415190
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
call fcn.0043ba60
mov dword [ebp - 0x1c0], eax
mov ecx, 0x580aac
call fcn.0042e470
push eax
mov edx, dword [ebp - 0x15c]
add edx, 0x1c
push edx
mov ecx, dword [ebp - 0x1c0]
call fcn.0043bb20
mov byte [ebp - 0x1c1], al
movzx eax, byte [ebp - 0x1c1]
test eax, eax
jne 0x4b6130
mov dword [ebp - 0x104], 1
push 0x557c48
lea ecx, [ebp - 0x104]
push ecx
call fcn.00509f58
mov ecx, dword [ebp - 0x15c]
add ecx, 0x1c
call fcn.0041da00
mov dword [ebp - 0x1c8], eax
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x1c8]
call fcn.00413ff0
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x64], ecx
mov ecx, dword [ebp - 0x15c]
call fcn.004b7840
mov byte [ebp - 0x1c9], al
movzx edx, byte [ebp - 0x1c9]
test edx, edx
jne 0x4b6196
mov dword [ebp - 0x108], 2
push 0x557c48
lea eax, [ebp - 0x108]
push eax
call fcn.00509f58
mov ecx, dword [0x532fd8]
add ecx, 1
imul ecx, ecx, 0x1a
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xe0], 0x94
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4b61d5
cmp dword [ebp - 0xdc], 5
jae 0x4b61d5
mov eax, dword [ebp - 0x30]
add eax, dword [0x532fd8]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x532fd8]
imul ecx, ecx, 0x16
mov dword [ebp - 0x34], ecx
push 0x24
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x110], 0
je 0x4b6229
mov ecx, dword [ebp - 0x110]
call fcn.00414040
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], eax
jmp 0x4b6233
mov dword [ebp - 0x1d8], 0
mov ecx, dword [ebp - 0x1d8]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x10
call fcn.00428d80
mov ecx, dword [ebp - 0x15c]
add ecx, 0x10
call fcn.0041da00
mov dword [ebp - 0x1dc], eax
push 1
push 1
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1dc]
call fcn.004148c0
mov byte [ebp - 0x1dd], al
movzx edx, byte [ebp - 0x1dd]
test edx, edx
jne 0x4b62af
mov dword [ebp - 0x114], 2
push 0x557c48
lea eax, [ebp - 0x114]
push eax
call fcn.00509f58
push 0x16
mov ecx, dword [ebp - 0x15c]
add ecx, 0x44
call fcn.004ba430
mov ecx, dword [0x532fd8]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
lea ecx, [ebp - 0x124]
call fcn.00412800
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x15c]
add eax, 0x54
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
call fcn.00415190
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
call fcn.0044aa70
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1ec]
call fcn.004c6270
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
sub edx, 1
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x50], edx
push 0x24
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x12c], 0
je 0x4b638b
mov ecx, dword [ebp - 0x12c]
call fcn.00414040
mov dword [ebp - 0x1f8], eax
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], edx
jmp 0x4b6395
mov dword [ebp - 0x1fc], 0
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.00428d80
mov ecx, dword [ebp - 0x15c]
add ecx, 0x54
call fcn.00412880
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0041da00
mov dword [ebp - 0x204], eax
push 1
push 1
mov edx, dword [ebp - 0x200]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x204]
call fcn.004148c0
mov byte [ebp - 0x205], al
movzx ecx, byte [ebp - 0x205]
test ecx, ecx
jne 0x4b6428
mov dword [ebp - 0x130], 2
push 0x557c48
lea edx, [ebp - 0x130]
push edx
call fcn.00509f58
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0041da00
mov dword [ebp - 0x20c], eax
push 0x80ffff00
mov ecx, dword [ebp - 0x20c]
call fcn.00414020
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0041da00
mov dword [ebp - 0x210], eax
push 0
mov ecx, dword [ebp - 0x210]
call fcn.00414990
mov ecx, dword [ebp - 0x15c]
add ecx, 0x28
call fcn.0041da00
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.00413ff0
call fcn.00415330
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.004c68a0
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x16
mov eax, dword [ebp - 0x38]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
cdq
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x138]
call fcn.00412790
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], edx
push 0x74
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x140], ecx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x140], 0
je 0x4b65b7
push 0
mov edx, dword [ebp - 0x44]
add edx, 4
push edx
lea ecx, [ebp - 0x150]
call fcn.00412790
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
lea edx, [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x68
call fcn.0043a3d0
mov dword [ebp - 0x228], eax
push 1
push 0x16
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x16
push edx
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x140]
call fcn.004b6690
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], eax
jmp 0x4b65c1
mov dword [ebp - 0x230], 0
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x34
call fcn.004bc130
mov ecx, dword [ebp - 0x15c]
add ecx, 0x34
call fcn.0041da00
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
call fcn.00503180
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x238]
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x70
call fcn.00427140
mov ecx, dword [ebp - 0x15c]
add ecx, 0x7c
call fcn.004b7820
mov ecx, dword [ebp - 0x15c]
call fcn.004b92b0
mov ecx, dword [ebp - 0x15c]
call fcn.004b9300
jmp 0x4b665b
mov dword [ebp - 4], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.00509f49
mov esp, ebp
pop ebp
ret