Function at 0x1008add
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
cmp dword [ebp - 0x20], 4
jbe 0x1008b0f
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x9c
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1001fc0
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10102a8], eax
je 0x1008c61
cmp dword [ebp - 0x20], 5
jne 0x1008bc4
cmp dword [ebp - 0x1c], 0
jbe 0x1008bc4
push 0x1001fa8
push eax
call esi
push 0x1001f90
push dword [0x10102a8]
mov dword [0x10102f0], eax
call esi
push 0x1001f78
push dword [0x10102a8]
mov dword [0x10102f4], eax
call esi
push 0x1001f5c
push dword [0x10102a8]
mov dword [0x10102f8], eax
call esi
push 0x1001f40
push dword [0x10102a8]
mov dword [0x1010308], eax
call esi
push 0x1001f24
push dword [0x10102a8]
mov dword [0x1010304], eax
call esi
push 0x1001f04
push dword [0x10102a8]
mov dword [0x101030c], eax
call esi
mov dword [0x1010310], eax
push 0x1001ef0
jmp 0x1008bfa
push 0x1001edc
push eax
call esi
push 0x1001ecc
push dword [0x10102a8]
mov dword [0x10102f0], eax
call esi
push 0x1001ebc
push dword [0x10102a8]
mov dword [0x10102f4], eax
call esi
mov dword [0x10102f8], eax
push 0x1001eac
push dword [0x10102a8]
call esi
push 0x1001e98
push dword [0x10102a8]
mov dword [0x1010314], eax
call esi
push 0x1001e84
push dword [0x10102a8]
mov dword [0x10102e4], eax
call esi
push 0x1001e70
push dword [0x10102a8]
mov dword [0x10102e8], eax
call esi
push 0x1001e58
push dword [0x10102a8]
mov dword [0x10102ec], eax
call esi
push 0x1001e40
push dword [0x10102a8]
mov dword [0x10102fc], eax
call esi
mov dword [0x1010300], eax
push 0x1001e34
call edi
test eax, eax
mov dword [0x10102ac], eax
je 0x1008cea
push 0x1001e28
push eax
call esi
push 0x1001e18
push dword [0x10102ac]
mov dword [0x1010318], eax
call esi
push 0x1001e0c
push dword [0x10102ac]
mov dword [0x101031c], eax
call esi
push 0x1001e00
push dword [0x10102ac]
mov dword [0x1010320], eax
call esi
push 0x1001df4
push dword [0x10102ac]
mov dword [0x1010324], eax
call esi
push 0x1001dec
push dword [0x10102ac]
mov dword [0x1010328], eax
call esi
push 0x1001de0
push dword [0x10102ac]
mov dword [0x101032c], eax
call esi
mov dword [0x1010330], eax
push 0x1001dd4
call edi
test eax, eax
mov dword [0x10102b0], eax
je 0x1008d2b
push 0x1001dc0
push eax
call esi
push 0x1001dac
push dword [0x10102b0]
mov dword [0x1022640], eax
call esi
push 0x1001d9c
push dword [0x10102b0]
mov dword [0x102161c], eax
call esi
mov dword [0x1043ae4], eax
push 0x1001d8c
call edi
test eax, eax
mov dword [0x10102b4], eax
je 0x1008ea5
push 0x1001d7c
push eax
call esi
push 0x1001d6c
push dword [0x10102b4]
mov dword [0x1043ae8], eax
call esi
push 0x1001d54
push dword [0x10102b4]
mov dword [0x1043af4], eax
call esi
push 0x1001d3c
push dword [0x10102b4]
mov dword [0x1022644], eax
call esi
push 0x1001d24
push dword [0x10102b4]
mov dword [0x1022648], eax
call esi
push 0x1001d08
push dword [0x10102b4]
mov dword [0x102264c], eax
call esi
push 0x1001cec
push dword [0x10102b4]
mov dword [0x101033c], eax
call esi
test eax, eax
mov dword [0x1010338], eax
je 0x1008e9e
push 0x1001cd0
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010340], eax
je 0x1008e9e
push 0x1001cac
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010344], eax
je 0x1008e9e
push 0x1001c88
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010348], eax
je 0x1008e9e
push 0x1001c68
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x101034c], eax
je 0x1008e9e
push 0x1001c44
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010350], eax
je 0x1008e9e
push 0x1001c24
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010358], eax
je 0x1008e9e
push 0x1001c04
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x101035c], eax
je 0x1008e9e
push 0x1001be4
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010360], eax
je 0x1008e9e
push 0x1001bd4
push dword [0x10102b4]
call esi
test eax, eax
mov dword [0x1010364], eax
je 0x1008e9e
mov dword [0x1010368], 1
jmp 0x1008ea5
and dword [0x1010368], 0
push 0x1001bc8
call edi
test eax, eax
mov dword [0x10102d0], eax
je 0x1008ee2
cmp dword [0x1010368], 0
je 0x1008edb
push 0x1001bb0
push eax
call esi
test eax, eax
mov dword [0x1010354], eax
je 0x1008edb
mov dword [0x1010368], 1
jmp 0x1008ee2
and dword [0x1010368], 0
push 0x1001ba4
call edi
test eax, eax
mov dword [0x10102b8], eax
je 0x1008eff
push 0x1001b80
push eax
call esi
mov dword [0x1022884], eax
push 0x1001b70
call edi
test eax, eax
mov dword [0x10102bc], eax
je 0x1008f1c
push 0x1001b54
push eax
call esi
mov dword [0x10239c4], eax
push 0x1001b4c
call edi
test eax, eax
mov dword [0x10102c0], eax
je 0x1008f4b
push 0x1001b40
push eax
call esi
push 0x1001b30
push dword [0x10102c0]
mov dword [0x1043aec], eax
call esi
mov dword [0x1021624], eax
push 0x1001b20
call edi
test eax, eax
mov dword [0x10102c4], eax
je 0x1008f80
push 0x1001b00
push eax
call esi
cmp dword [ebp - 0x20], 5
mov dword [0x1022650], eax
jne 0x1008f80
push 0x1001ae4
push dword [0x10102c4]
call esi
mov dword [0x1010334], eax
push 0x1001ad8
call edi
test eax, eax
mov dword [0x10102c8], eax
je 0x1008f9d
push 0x1001ac4
push eax
call esi
mov dword [0x10239c8], eax
push 0x1001ab8
call edi
test eax, eax
mov dword [0x10102cc], eax
pop edi
je 0x1008fbb
push 0x1001aac
push eax
call esi
mov dword [0x1022654], eax
pop esi
add ebp, 0x78
leave
ret