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

Disassembly:
push ebp
mov ebp, esp
push 0xe4
call fcn.0040a961
push ebx
push ecx
push edx
push esi
push edi
sub esp, 0xac
mov eax, dword [0x4143a8]
test eax, eax
jne 0x40b9e2
xor edx, edx
mov dword [0x4143a0], eax
mov ebx, 0x100
mov eax, 0x415d30
call fcn.0040aa70
mov ebx, 0x200
xor edx, edx
mov eax, 0x415e30
call fcn.0040aa70
mov ebx, 0x24
xor edx, edx
mov eax, 0x416130
call fcn.0040aa70
push 0x413eaf
push 0x413ec3
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x40b10c
push 0x416130
call edx
jmp 0x40b117
push 0x416130
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ebx, 0x9c
xor edx, edx
mov eax, 0x416154
call fcn.0040aa70
mov dword [0x416154], 0x9c
push 0x416154
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x40b1be
mov ebx, 0x94
xor edx, edx
lea eax, [ebp - 0xc0]
call fcn.0040aa70
mov dword [ebp - 0xc0], 0x94
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40b9e2
mov eax, dword [ebp - 0xc0]
mov dword [0x416154], eax
mov eax, dword [ebp - 0xbc]
mov dword [0x416158], eax
mov eax, dword [ebp - 0xb8]
mov dword [0x41615c], eax
mov eax, dword [ebp - 0xb4]
mov dword [0x416160], eax
mov eax, dword [ebp - 0xb0]
mov dword [0x416164], eax
mov ebx, pe_nt_image_headers32
lea edx, [ebp - 0xac]
mov eax, 0x416168
call fcn.0040d730
mov edx, dword [0x416158]
shl edx, 8
mov eax, dword [0x41615c]
add edx, eax
mov dword [0x4143a0], edx
mov ebx, 0x415d30
mov eax, dword [0x416164]
cmp eax, 2
je 0x40b2fb
cmp eax, 1
je 0x40b222
test eax, eax
jne 0x40b8ee
push 0x416168
mov ecx, dword [0x416160]
push ecx
mov esi, dword [0x41615c]
push esi
mov edi, dword [0x416158]
push edi
push 0x413ed0
push ebx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x18
jmp 0x40b918
xor eax, eax
mov word [0x416162], ax
mov eax, edx
cmp edx, 0x45a
je 0x40b2bc
cmp edx, 0x40a
je 0x40b285
cmp edx, 0x400
jne 0x40b2c3
push 0x413f08
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x416168
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov eax, dword [0x416160]
cmp eax, 0x3b6
jb 0x40b2cf
cmp eax, 0x438
ja 0x40b2cf
push 0x413f13
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
jmp 0x40b2cf
push 0x413f19
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp byte [0x416169], 0x41
jne 0x40b2a6
push 0x413f24
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [0x416160]
cmp ecx, 0x7ce
jb 0x40b2cf
cmp ecx, 0x887
jmp 0x40b275
push 0x413f28
jmp 0x40b2c8
push 0x413f33
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add ebx, eax
push 0x416168
mov edi, dword [0x416160]
push edi
mov eax, dword [0x41615c]
push eax
mov edx, dword [0x416158]
push edx
push 0x413f3e
jmp 0x40b213
mov eax, edx
cmp edx, 0x501
jb 0x40b35f
jbe 0x40b407
cmp edx, 0x601
jb 0x40b342
jbe 0x40b5d3
cmp edx, 0xa00
je 0x40b723
cmp edx, 0x603
je 0x40b6b2
cmp edx, 0x602
je 0x40b62f
jmp 0x40b848
cmp edx, 0x600
je 0x40b559
cmp edx, 0x502
je 0x40b4a6
jmp 0x40b848
cmp edx, 0x350
jb 0x40b384
cmp edx, 0x351
jbe 0x40b398
cmp edx, 0x500
je 0x40b3d0
cmp edx, 0x400
je 0x40b398
jmp 0x40b848
cmp edx, 0x310
je 0x40b398
cmp edx, 0x301
jne 0x40b848
push 0x413f4d
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov al, byte [0x4161ee]
cmp al, 1
jb 0x40b89d
jbe 0x40b3bc
cmp al, 3
jbe 0x40b3c6
jmp 0x40b89d
push 0x413f58
jmp 0x40b6a6
push 0x413f65
jmp 0x40b6a6
mov eax, 0x413f6d
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov al, byte [0x4161ee]
cmp al, 1
jb 0x40b89d
jbe 0x40b3f5
cmp al, 3
jbe 0x40b400
jmp 0x40b89d
mov eax, 0x413bb2
push eax
jmp 0x40b6a6
mov eax, 0x413f65
jmp 0x40b3fa
mov eax, 0x413f7a
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov al, byte [0x4161ee]
cmp al, 1
jb 0x40b48f
jbe 0x40b42c
cmp al, 3
jbe 0x40b482
jmp 0x40b48f
test byte [0x4161ed], 2
je 0x40b43c
mov eax, 0x413f85
jmp 0x40b441
mov eax, 0x413bb2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x57
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
je 0x40b45c
push 0x413f8b
jmp 0x40b488
push 0x58
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
je 0x40b46f
push 0x413d4f
jmp 0x40b488
push 0x56
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
je 0x40b48f
push 0x413f98
jmp 0x40b488
mov eax, 0x413fa2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
test byte [0x4161ec], 0x40
je 0x40b89d
push 0x413a12
jmp 0x40b6a6
mov eax, 0x413fab
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov al, byte [0x4161ee]
cmp al, 1
jb 0x40b552
jbe 0x40b4cb
cmp al, 3
jbe 0x40b4f1
jmp 0x40b552
cmp word [0x416130], 9
jne 0x40b4e7
mov eax, 0x413fb8
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x40b89d
mov eax, 0x413f58
jmp 0x40b3fa
test byte [0x4161ed], 0x80
je 0x40b509
mov eax, 0x413fd4
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x40b52f
mov eax, 0x413fe8
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x59
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
je 0x40b52f
mov eax, 0x413ffc
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp word [0x416130], 9
jne 0x40b545
push 0x414000
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp word [0x416130], 6
jmp 0x40b5c3
push 0x413fab
jmp 0x40b4db
mov eax, 0x41400e
push eax
mov eax, 0x413ec3
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 6
call edx
cmp byte [0x4161ee], 1
jne 0x40b592
mov eax, 0x41401d
jmp 0x40b597
mov eax, 0x41402b
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0040aae9
mov ax, word [0x416130]
cmp ax, 9
jne 0x40b5bf
push 0x414000
jmp 0x40b6a6
cmp ax, 6
jne 0x40b89d
push 0x414005
jmp 0x40b6a6
push 0x41400e
push 0x413ec3
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 1
push 6
call edx
cmp byte [0x4161ee], 1
jne 0x40b60a
mov eax, 0x41403f
jmp 0x40b60f
mov eax, 0x414049
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.0040aae9
mov ax, word [0x416130]
cmp ax, 9
je 0x40b5b5
jmp 0x40b5bf
push 0x41400e
push 0x413ec3
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 2
push 6
call edx
cmp byte [0x4161ee], 1
jne 0x40b666
push 0x414060
jmp 0x40b66b
push 0x41406a
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.0040aae9
mov dx, word [0x416130]
cmp dx, 9
je 0x40b5b5
cmp dx, 6
je 0x40b5c9
cmp dx, 5
jne 0x40b89d
push 0x41407e
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
jmp 0x40b89d
push 0x41400e
push 0x413ec3
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 3
push 6
call edx
cmp byte [0x4161ee], 1
jne 0x40b6e9
push 0x414083
jmp 0x40b6ee
push 0x41408f
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0040aae9
mov di, word [0x416130]
cmp di, 9
je 0x40b5b5
cmp di, 6
je 0x40b5c9
cmp di, 5
jmp 0x40b69b
push 0x41400e
push 0x413ec3
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 0xa
call eax
cmp byte [0x4161ee], 1
jne 0x40b758
push 0x4140a6
jmp 0x40b75d
push 0x4140b1
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0040aae9
mov cx, word [0x416130]
cmp cx, 9
jne 0x40b782
push 0x414000
jmp 0x40b79a
cmp cx, 6
jne 0x40b78f
push 0x414005
jmp 0x40b79a
cmp cx, 5
jne 0x40b7a1
push 0x41407e
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp byte [0x4161ee], 1
jne 0x40b89d
mov ecx, dword [0x416160]
cmp ecx, 0x2800
jae 0x40b7c6
push 0x4140c5
jmp 0x40b6a6
jne 0x40b7d2
push 0x4140cb
jmp 0x40b6a6
cmp ecx, 0x295a
ja 0x40b7e4
push 0x4140d0
jmp 0x40b6a6
cmp ecx, 0x3839
ja 0x40b7f6
push 0x4140d6
jmp 0x40b6a6
cmp ecx, 0x3ad7
ja 0x40b808
push 0x4140dc
jmp 0x40b6a6
cmp ecx, 0x3fab
ja 0x40b81a
push 0x4140e2
jmp 0x40b6a6
cmp ecx, 0x42ee
ja 0x40b82c
push 0x4140e8
jmp 0x40b6a6
cmp ecx, 0x4563
ja 0x40b83e
push 0x4140ee
jmp 0x40b6a6
push 0x4140f4
jmp 0x40b6a6
push 0x4140fb
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov al, byte [0x4161ee]
cmp al, 3
je 0x40b86c
cmp al, 2
je 0x40b873
cmp al, 1
jne 0x40b87f
push 0x413f58
jmp 0x40b878
push 0x413f65
jmp 0x40b878
push 0x414103
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add ebx, eax
mov eax, dword [0x4143a0]
push eax
push 0x414116
push ebx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add ebx, eax
mov edx, dword [0x416160]
push edx
mov ecx, dword [0x41615c]
push ecx
mov esi, dword [0x416158]
push esi
push 0x41411f
push ebx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add ebx, eax
cmp byte [0x416168], 0
je 0x40b918
mov byte [ebx], 0x20
push 0x416168
inc ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x40b918
push 0x416168
mov esi, dword [0x416160]
push esi
mov edi, dword [0x41615c]
push edi
mov edx, dword [0x416158]
push edx
push eax
push 0x41412a
push ebx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x1c
call fcn.0040b05f
mov esi, eax
test eax, eax
je 0x40b95d
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add ebx, eax
mov byte [ebx], 0x20
inc ebx
mov byte [ebx], 0x28
inc ebx
mov byte [ebx], 0x57
inc ebx
mov byte [ebx], 0x69
inc ebx
mov byte [ebx], 0x6e
inc ebx
mov byte [ebx], 0x65
inc ebx
mov byte [ebx], 0x20
push esi
inc ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov word [ebx + eax], 0x29
push 0x100
push 0x415e30
push 0x100
push 0x415d30
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, 0x100
jae 0x40b98e
xor ecx, ecx
mov word [eax*2 + 0x415e30], cx
jmp 0x40b997
xor ebx, ebx
mov word [0x41602e], bx
xor edi, edi
mov dword [0x4143a4], edi
push 0x41415b
push 0x41416a
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
test eax, eax
je 0x40b9d8
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x40b9d8
mov eax, dword [ebp - 0x18]
mov dword [0x4143a4], eax
mov dword [0x4143a8], 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret