Function at 0x4953ac
Capabilities:
Check os version
Get system information on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4953b4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x495d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5193e8]
test byte [eax + 3], 4
jne 0x495414
mov edx, fcn.004032d4
mov eax, fcn.00491a34
call fcn.004964c4
mov edx, 0x492a9c
mov eax, 0x4925b0
call fcn.004964c4
mov edx, 0x492dc0
mov eax, fcn.004923fc
call fcn.004964c4
push 0
xor ecx, ecx
mov dl, 0xc
mov eax, 0x495d7c
call fcn.00494da4
mov eax, 0x495dac
call fcn.00494438
mov ebx, eax
push 0x495dbc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x520fcc], eax
cmp dword [0x520fcc], 0
jne 0x495443
mov eax, 0x494664
mov dword [0x520fcc], eax
push 0x495dcc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x520ff8], eax
cmp dword [0x520ff8], 0
jne 0x495466
mov eax, 0x407818
mov dword [0x520ff8], eax
mov eax, 0x520ffc
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
cmp dword [0x521000], 0
jne 0x495499
cmp dword [0x520ffc], 0
jne 0x495499
mov ecx, 0x495df4
mov dl, 1
mov eax, dword [0x4087ec]
call fcn.0040e7d8
call fcn.00404bec
cmp dword [0x521000], 0
jne 0x4954ac
cmp dword [0x520ffc], 0x989680
sete al
mov byte [0x521004], al
push 0x495e10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x4954e0
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4954e0
cmp dword [ebp - 0x1c], 0
jne 0x4954e4
xor eax, eax
jmp 0x4954e6
mov al, 1
mov byte [0x520e0c], al
cmp byte [0x520e0c], 0
je 0x495503
push 0x495e20
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
jmp 0x495507
xor eax, eax
mov esi, eax
push 0x495e34
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521010], eax
push 0x495e44
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521014], eax
push 0x495e54
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521018], eax
push 0x495e70
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x495e90
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x520fc0], eax
push 0x495ea4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x520fc4], eax
push 0x495ebc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x520fc8], eax
cmp dword [0x520fc0], 0
je 0x49558f
cmp dword [0x520fc4], 0
je 0x49558f
cmp dword [0x520fc8], 0
jne 0x4955ad
mov eax, 0x4946a0
mov dword [0x520fc0], eax
mov eax, 0x4946b0
mov dword [0x520fc4], eax
mov eax, 0x4946c0
mov dword [0x520fc8], eax
call fcn.00495348
neg eax
mov dword [0x520fd0], eax
mov eax, 0x520e10
xor ecx, ecx
mov edx, 0x24
call fcn.00491940
test esi, esi
je 0x4955d7
push 0x520e10
call esi
jmp 0x4955e1
push 0x520e10
call sub.kernel32.dll_GetSystemInfo
mov eax, 0xa
call fcn.00402fc4
cmp eax, 0x100000
jbe 0x495608
cmp dword [0x520e18], 0x100000
ja 0x495608
mov dword [0x520e18], 0x100000
call fcn.00402fe0
mov dword [0x520e34], 0x9c
push 0x520e34
call sub.kernel32.dll_GetVersionExA_1
xor ebx, ebx
mov eax, dword [0x520e38]
sub eax, 5
je 0x495637
dec eax
je 0x49567a
sub eax, 4
je 0x4956b3
jmp case.default.0x495684
mov eax, dword [0x520e3c]
sub eax, 1
jb 0x495648
je 0x49564c
dec eax
je 0x495650
jmp case.default.0x495684
mov bl, 1
jmp case.default.0x495684
mov bl, 2
jmp case.default.0x495684
cmp byte [0x520ece], 1
jne 0x495667
cmp word [0x520e10], 9
jne 0x495667
mov bl, 3
jmp case.default.0x495684
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x495676
mov bl, 4
jmp case.default.0x495684
mov bl, 5
jmp case.default.0x495684
mov eax, dword [0x520e3c]
cmp eax, 4
ja case.default.0x495684
jmp dword [eax*4 + 0x49568b]
mov bl, 6
jmp case.default.0x495684
mov bl, 0xa
jmp case.default.0x495684
mov bl, 0xe
jmp case.default.0x495684
mov bl, 0x12
jmp case.default.0x495684
mov bl, 0x16
jmp case.default.0x495684
mov bl, 0x16
cmp bl, 6
jb 0x495709
cmp byte [0x520ece], 1
je 0x4956e6
add bl, 2
cmp bl, 0x18
jne 0x4956f9
mov eax, dword [0x520e40]
cmp eax, 0x4563
jb 0x4956f9
cmp eax, 0x4f3d
jb 0x4956e2
mov bl, 0x1d
jmp 0x4956f9
mov bl, 0x1c
jmp 0x4956f9
cmp bl, 0x16
jne 0x4956f9
cmp dword [0x520e40], 0x55f0
jb 0x4956f9
mov bl, 0x1a
cmp word [0x520e10], 9
jne 0x495709
cmp bl, 0x1c
jae 0x495709
inc ebx
mov byte [0x520ed0], bl
cmp byte [0x520ed0], 6
jb 0x495724
mov dword [0x52100c], 0x1000
jmp 0x49572e
mov dword [0x52100c], 0x410
movzx esi, word [0x520ec8]
test si, si
jne 0x495788
push 0x520db8
movzx eax, bl
mov eax, dword [eax*4 + 0x513ea0]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [0x520e38]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [0x520e3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [0x520e40]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x495edc
call fcn.004940ac
jmp 0x4957de
push 0x520db8
movzx eax, bl
mov eax, dword [eax*4 + 0x513ea0]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
movzx eax, si
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
mov eax, dword [0x520e38]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
mov eax, dword [0x520e3c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
mov eax, dword [0x520e40]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x68]
mov ecx, 4
mov eax, 0x495efc
call fcn.004940ac
mov byte [0x520e08], 1
mov byte [0x520e09], bl
movzx eax, word [0x520e40]
mov word [0x520e0a], ax
mov eax, 0x495f18
call fcn.00494438
mov ebx, eax
test ebx, ebx
jbe 0x4958b0
push 0x495f24
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
je 0x495860
call esi
mov edx, eax
mov eax, 0x520dbc
call fcn.004053c0
lea edx, [ebp - 0x74]
mov eax, dword [0x520dbc]
call fcn.00491334
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x495f40
call fcn.004054e0
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.00491334
mov edx, dword [ebp - 0x6c]
mov eax, 0x520dbc
call fcn.0040521c
push 0x495f48
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52104c], eax
push 0x495f64
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521050], eax
push 0x495f7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521054], eax
push 0x495f8c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521058], eax
push 0x495fa0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52105c], eax
cmp dword [0x520dbc], 0
je 0x4958d9
push dword [0x520db8]
push 0x495fc0
push dword [0x520dbc]
mov eax, 0x520db8
mov edx, 3
call fcn.0040555c
push 0
lea eax, [ebp - 4]
mov ecx, 0x495fcc
mov dl, 2
call fcn.004951bc
test al, al
je 0x49591a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x496000
call fcn.00495248
cmp dword [ebp - 8], 0
jne 0x49591a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x49602c
call fcn.00495248
push 1
lea eax, [ebp - 4]
mov ecx, 0x49604c
mov dl, 2
call fcn.004951bc
test al, al
je 0x495994
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x496074
call fcn.00495248
cmp dword [ebp - 0xc], 0
je 0x495955
lea eax, [ebp - 0xc]
mov edx, 0x4960a4
call fcn.00405494
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4960ac
call fcn.00495248
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4960d4
call fcn.00495248
cmp dword [ebp - 0x14], 0
jne 0x495994
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4960f4
call fcn.00495248
cmp dword [ebp - 0x10], 0
je 0x4959a0
cmp dword [ebp - 0x14], 0
jne 0x4959e7
push 1
lea eax, [ebp - 4]
mov ecx, 0x496114
mov dl, 2
call fcn.004951bc
test al, al
je 0x4959e7
cmp dword [ebp - 0x10], 0
jne 0x4959ce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x496134
call fcn.00495248
cmp dword [ebp - 0x14], 0
jne 0x4959e7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x49615c
call fcn.00495248
lea eax, [ebp - 4]
call fcn.00495238
mov eax, 0x520dd0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004054e0
cmp dword [ebp - 0x14], 0
je 0x495a22
push dword [0x520dd0]
push 0x4960a4
push dword [ebp - 0x14]
mov eax, 0x520dd0
mov edx, 3
call fcn.0040555c
cmp dword [ebp - 8], 0
jne 0x495a40
lea edx, [ebp - 0x78]
mov eax, 0x496188
call fcn.00410aac
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.00405260
test edi, edi
je 0x495c8f
push 0x400
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x495384]
call fcn.004066d8
add esp, 4
mov eax, dword [ebp - 0x18]
call fcn.0040651c
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*2]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x495c8f
mov eax, dword [ebp - 0x20]
mov ecx, 0x18
xor edx, edx
div ecx
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x495b0e
inc ebx
xor esi, esi
lea eax, [esi + esi*2]
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*8]
movzx edx, byte [eax + 4]
sub dl, 2
je 0x495ac8
dec dl
jne 0x495b0a
mov ecx, dword [eax]
mov edx, 0x520dd4
mov eax, 0x520fec
call fcn.004911d8
jmp 0x495b0a
movzx edx, byte [eax + 0x10]
test dl, dl
je 0x495ad5
sub dl, 2
jne 0x495b0a
movzx edx, byte [eax + 8]
cmp dl, 1
jb 0x495b0a
cmp dl, 4
ja 0x495b0a
movzx edx, dl
lea edx, [edx + edx*2]
lea edx, [edx*4 + 0x520dcc]
cmp dword [edx], 0
je 0x495afb
cmp byte [eax + 0x10], 0
je 0x495b0a
inc dword [edx]
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
movzx eax, word [eax + 0xa]
mov dword [edx + 8], eax
inc esi
dec ebx
jne 0x495a9f
mov esi, 0xfffffffc
mov ebx, 0x520e00
mov eax, dword [ebx]
mov dword [0x520dc8], eax
cmp dword [0x520dc8], 0
je 0x495b82
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
mov eax, dword [0x520dc8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.00496268
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
lea edx, [ebp - 0x8c]
mov ecx, 1
mov eax, 0x4961a8
call fcn.00494050
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 8]
call fcn.00405260
jmp 0x495b88
sub ebx, 0xc
inc esi
jne 0x495b18
mov esi, 1
mov ebx, 0x520dd8
mov edi, ebx
cmp dword [edi], 0
je 0x495c78
cmp dword [edi], 1
jne 0x495c14
lea eax, [ebp - 0x94]
push eax
mov eax, dword [0x520dcc]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0xb
mov dword [ebp - 0xa4], esi
mov byte [ebp - 0xa0], 0
mov eax, dword [edi + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb0]
call fcn.00496268
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0xb
lea edx, [ebp - 0xac]
mov ecx, 2
mov eax, 0x4961bc
call fcn.00494050
mov edx, dword [ebp - 0x94]
mov eax, 0x520dcc
call fcn.0040521c
jmp 0x495c78
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [0x520dcc]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x34], 0
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [edi + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.00496268
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x4961d0
call fcn.00494050
mov edx, dword [ebp - 0xb4]
mov eax, 0x520dcc
call fcn.0040521c
inc esi
add ebx, 0xc
cmp esi, 5
jne 0x495b92
mov eax, 0x520dcc
call fcn.00491468
cmp dword [0x520dd4], 0
jne 0x495ca2
mov dword [0x520dd4], 1
push 0x520dc4
mov eax, dword [0x520e24]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
lea edx, [ebp - 0x8c]
mov ecx, 1
mov eax, 0x4961e8
call fcn.004940ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d6d
lea eax, [ebp - 0xb8]
call fcn.004051c8
lea eax, [ebp - 0xb4]
call fcn.004051c8
lea eax, [ebp - 0xb0]
call fcn.004051c8
lea eax, [ebp - 0x94]
call fcn.004051c8
lea eax, [ebp - 0x90]
call fcn.004051c8
lea eax, [ebp - 0x7c]
call fcn.004051c8
lea eax, [ebp - 0x78]
call fcn.004051c8
lea eax, [ebp - 0x74]
call fcn.004051c8
lea eax, [ebp - 0x70]
call fcn.004051c8
lea eax, [ebp - 0x6c]
call fcn.004051c8
lea eax, [ebp - 0x18]
mov edx, dword [0x495384]
call fcn.004066e4
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004051ec
ret