Function at 0x40d9dc
Capabilities:
Check os version
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push ebx
push esi
push edi
mov eax, 0x590288
call fcn.0051a22c
mov esi, 0x589c15
lea edi, [ebp - 0x1fc]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov word [ebp - 0xd4], 0x14
mov edx, 0x58abb2
lea eax, [ebp - 8]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
mov word [ebp - 0xd4], 8
mov dword [ebp - 0xe8], 0xff
lea ecx, [ebp - 0xe8]
push ecx
lea eax, [ebp - 0x1fc]
push eax
call sub.kernel32.dll_GetComputerNameA
mov word [ebp - 0xd4], 0x20
lea edx, [ebp - 0x1fc]
lea eax, [ebp - 0x18]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea edx, [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.0051a5fc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0051a5cc
call fcn.0042d718
mov word [ebp - 0xea], ax
mov word [ebp - 0xd4], 8
mov word [ebp - 0xd4], 0x2c
mov edx, 0x58abb3
lea eax, [ebp - 0xc]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
mov word [ebp - 0xd4], 8
mov word [ebp - 0xd4], 0x38
mov edx, 0x58abb6
lea eax, [ebp - 0x10]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
mov word [ebp - 0xd4], 8
mov word [ebp - 0xd4], 0x44
lea eax, [ebp - 0x14]
call fcn.00402270
inc dword [ebp - 0xc8]
mov word [ebp - 0xd4], 8
push 0
call sub.ole32.dll_CoInitialize
mov edx, dword [sym.imp.bdertl60.bpl__Dbtables_Session]
mov eax, dword [edx]
xor edx, edx
call sub.bdertl60.bpl__Dbtables_TSession_SetActive_qqro
mov ecx, dword [sym.imp.bdertl60.bpl__Dbtables_Session]
mov eax, dword [ecx]
mov dl, 1
call sub.bdertl60.bpl__Dbtables_TSession_SetActive_qqro
mov word [ebp - 0xd4], 0x50
mov word [ebp - 0xd4], 0x5c
mov edx, 0x58abbb
lea eax, [ebp - 0x1c]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x1c]
push ecx
mov edx, 0x58abb7
lea eax, [ebp - 0x20]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042dac8
push eax
call fcn.0042fa88
add esp, 0xc
test al, al
je 0x40dbea
mov edx, 0x58abc8
lea eax, [ebp - 0x24]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x24]
push ecx
mov edx, 0x58abc4
lea eax, [ebp - 0x28]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x28]
push ecx
call fcn.0042dac8
push eax
call fcn.0042fa88
add esp, 0xc
test al, al
setne al
and eax, 1
push eax
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0051a5cc
pop ecx
test ecx, ecx
jne 0x40dbee
xor eax, eax
jmp 0x40dbf3
mov eax, 1
push eax
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0051a5cc
pop ecx
test cl, cl
je 0x40dd7a
mov word [ebp - 0xd4], 0x74
mov edx, 0x58abd4
lea eax, [ebp - 0x30]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x34]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0042dac8
push eax
lea eax, [ebp - 0x2c]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042fbfc
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xd4], 0x68
lea eax, [ebp - 0x2c]
call fcn.00405068
test al, al
jne 0x40dcbf
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.0051a5fc
mov word [ebp - 0xd4], pe_nt_image_headers32
mov edx, 0x58abdd
lea eax, [ebp - 0x38]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x3c]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0042dac8
push eax
lea eax, [ebp - 0x40]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042fbfc
add esp, 0x10
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.0051a5fc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xd4], 0x50
jmp 0x40e0d8
call sub.kernel32.dll_GetVersion
mov dword [ebp - 0xf0], eax
mov word [ebp - 0xd4], 0x50
mov cl, byte [ebp - 0xf0]
and cl, 0xff
xor eax, eax
mov al, cl
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 6
jae 0x40e0d8
mov word [ebp - 0xd4], 0x8c
mov edx, 0x58abe9
lea eax, [ebp - 0x44]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x48]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0042dac8
push eax
call fcn.004305d0
add esp, 0xc
test al, al
je 0x40de6b
mov edx, 0x58abf2
lea eax, [ebp - 0x4c]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x50]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x50]
push edx
call fcn.0042dac8
push eax
call fcn.004305d0
add esp, 0xc
test al, al
setne cl
and ecx, 1
push ecx
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0051a5cc
pop ecx
test ecx, ecx
jne 0x40de6f
xor eax, eax
jmp 0x40de74
mov eax, 1
push eax
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0051a5cc
pop ecx
test cl, cl
je 0x40e0d8
mov word [ebp - 0xd4], 0xa4
mov edx, 0x58abfe
lea eax, [ebp - 0x58]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x58]
push ecx
lea eax, [ebp - 0x5c]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.0042dac8
push eax
lea eax, [ebp - 0x54]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.004306e0
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xd4], 0x98
lea eax, [ebp - 0x54]
call fcn.00405068
test al, al
jne 0x40df40
lea edx, [ebp - 0x54]
lea eax, [ebp - 0xc]
call fcn.0051a5fc
mov word [ebp - 0xd4], 0xb0
mov edx, 0x58ac07
lea eax, [ebp - 0x60]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x64]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0042dac8
push eax
lea eax, [ebp - 0x68]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.004306e0
add esp, 0x10
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x10]
call fcn.0051a5fc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0051a5cc
lea ecx, [ebp - 0xc]
push ecx
mov word [ebp - 0xd4], 0xbc
mov edx, 0x58ac13
lea eax, [ebp - 0x6c]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x6c]
push ecx
lea eax, [ebp - 0x70]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x70]
push edx
call fcn.0042dac8
push eax
call fcn.004302d8
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0051a5cc
lea ecx, [ebp - 0x10]
push ecx
mov word [ebp - 0xd4], 0xc8
mov edx, 0x58ac1c
lea eax, [ebp - 0x74]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x74]
push ecx
lea eax, [ebp - 0x78]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x78]
push edx
call fcn.0042dac8
push eax
call fcn.004302d8
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xd4], 0x50
mov word [ebp - 0xd4], 8
jmp 0x40e0f1
mov byte [ebp - 0xf5], 0
mov word [ebp - 0xd4], 8
xor ecx, ecx
mov dword [ebp - 0xfc], ecx
mov word [ebp - 0xd4], 0xd4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf0]
call sub.dbrtl60.bpl__Db_TCustomConnection_Close_qqrv
mov word [ebp - 0xd4], 0xe0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov edx, 0x58ac28
lea eax, [ebp - 0x7c]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
push dword [eax]
push dword [ebp - 8]
push dword [ebp + 8]
lea eax, [ebp - 0x80]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.00411d34
add esp, 0x18
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x84]
call fcn.0051c204
inc dword [ebp - 0xc8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xf0]
call sub.adortl60.bpl__Adodb_TADOConnection_SetConnectionString_qqrx17System_WideString
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0051c278
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xf0]
call fcn.0040e724
lea edx, [ebp - 8]
push edx
call fcn.0042d704
pop ecx
mov cx, word [ebp - 0xea]
push ecx
call fcn.0042d7b0
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.0042d7f8
pop ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042d844
pop ecx
lea ecx, [ebp - 0xc]
push ecx
mov word [ebp - 0xd4], 0xec
mov edx, 0x58ac2f
lea eax, [ebp - 0x88]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0x8c]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.0042dac8
push eax
call fcn.004302d8
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0051a5cc
lea ecx, [ebp - 0x10]
push ecx
mov word [ebp - 0xd4], 0xf8
mov edx, 0x58ac38
lea eax, [ebp - 0x90]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
lea ecx, [ebp - 0x90]
push ecx
lea eax, [ebp - 0x94]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x94]
push edx
call fcn.0042dac8
push eax
call fcn.004302d8
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0051a5cc
movzx ecx, word [ebp - 0xea]
push ecx
mov word [ebp - 0xd4], 0x104
mov edx, 0x58ac44
lea eax, [ebp - 0x98]
call fcn.0051a3a8
inc dword [ebp - 0xc8]
push dword [eax]
lea eax, [ebp - 0x9c]
call fcn.00402270
push eax
inc dword [ebp - 0xc8]
call fcn.0042dad4
pop ecx
lea edx, [ebp - 0x9c]
push dword [edx]
call fcn.0042dac8
push eax
call fcn.004310e8
add esp, 0x10
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xd4], 8
jmp 0x40e6ad
mov byte [ebp - 0xf5], 1
cmp byte [ebp - 0xf5], 0
mov al, byte [ebp - 0xf5]
push eax
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc8]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051a5cc
pop eax
mov edx, dword [ebp - 0xe4]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret