Function at 0x40e540
Capabilities:
Get hostname
Get mac address on windows
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x472fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x4878d4]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4878d4]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x2a1]
push ebx
push ecx
mov dword [esp + 0x34], eax
mov byte [esp + 0x2a8], bl
call fcn.0045cac0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2a0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2a0]
call fcn.0041d900
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x4b8], ebx
call fcn.0041dac0
push 0x103
lea edx, [esp + 0x199]
push ebx
push edx
mov byte [esp + 0x1a0], bl
call fcn.0045cac0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov ecx, str.NAME
call fcn.0041d900
mov byte [esp + 0x4b4], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], 1
jle 0x40e62b
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00404950
mov eax, dword [esp + 0x1c]
push eax
push 0x104
lea eax, [esp + 0x19c]
push eax
push str.Error
push 0x47c02c
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x194]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e658
sub eax, edx
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, eax
call fcn.0041ebb0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x198]
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.Machine
lea edx, [esp + 0x1c]
push edx
mov edx, 9
call fcn.0041ebb0
lea eax, [esp + 0x194]
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e6b0
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0x1c]
sub eax, esi
push edx
mov edx, eax
call fcn.0041ebb0
push str.MAC
lea eax, [esp + 0x1c]
push eax
mov edx, 5
call fcn.0041ebb0
mov edx, dword [0x489490]
mov eax, dword [edx + 0xc]
mov ecx, 0x489490
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x4b4], 2
push 0x288
mov dword [esp + 0x30], 0x288
mov dword [esp + 0x24], ebx
call fcn.00459cc6
add esp, 4
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40e747
push esi
call fcn.004599df
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.00459cc6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
lea eax, [esp + 0x2c]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40e7d4
cmp dword [esi + 0x1a0], 6
je 0x40e767
mov esi, dword [esi]
cmp esi, ebx
jne 0x40e756
jmp 0x40e7d4
mov eax, dword [esi + 0x190]
xor edi, edi
cmp eax, ebx
jbe 0x40e7d4
movzx edx, byte [esi + edi + 0x194]
dec eax
mov ecx, edi
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x2d
push ecx
push edx
lea eax, [esp + 0x94]
push str._02X_c
push eax
call fcn.0045a60e
lea eax, [esp + 0x9c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e7a8
sub eax, edx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, eax
call fcn.0041ebb0
mov eax, dword [esi + 0x190]
inc edi
cmp edi, eax
jb 0x40e773
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e7e5
push eax
call fcn.004599df
add esp, 4
mov edx, dword [ebp - 0xc]
push ebp
lea eax, [esp + 0x1c]
push eax
call fcn.0041ebb0
push 0xff
lea ecx, [esp + 0x99]
push ebx
push ecx
mov byte [esp + 0xa0], bl
call fcn.0045cac0
mov edx, dword [esp + 0x34]
add esp, 0xc
push edx
lea ecx, [esp + 0x98]
call fcn.0040ec30
push str.VideoBiosDate
lea eax, [esp + 0x1c]
mov ebp, 0xf
push eax
mov edx, ebp
call fcn.0041ebb0
lea eax, [esp + 0x94]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e841
sub eax, edx
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, eax
call fcn.0041ebb0
lea eax, [esp + 0x94]
push eax
call fcn.0040ee50
push str.BiosVersion
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0xd
call fcn.0041ebb0
lea eax, [esp + 0x94]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e890
sub eax, edx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov edx, eax
call fcn.0041ebb0
lea edx, [esp + 0x30]
push edx
push 0xf003f
push ebx
push str.HARDWAREDESCRIPTIONSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e958
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x3a8]
push ecx
lea edx, [esp + 0x94]
push edx
push ebx
push str.SystemBiosDate
push eax
mov dword [esp + 0x38], 0xff
mov dword [esp + 0xa4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e94d
push str.SystemBoisDate
lea ecx, [esp + 0x1c]
push ecx
lea edx, [eax + 0x10]
call fcn.0041ebb0
lea eax, [esp + 0x3a4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e930
sub eax, edx
lea edx, [esp + 0x3a4]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov edx, eax
call fcn.0041ebb0
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.OS
lea eax, [esp + 0x1c]
push eax
mov edx, 4
call fcn.0041ebb0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x370]
cmp eax, 6
jne 0x40e98a
lea edx, [esp + 0x18]
push str.VISTA
push edx
lea edx, [eax - 1]
jmp 0x40e9af
cmp eax, 7
jne 0x40e9a0
push str.Windows7
lea eax, [esp + 0x1c]
push eax
mov edx, 8
jmp 0x40e9af
push 0x47c0cc
lea ecx, [esp + 0x1c]
push ecx
mov edx, 2
call fcn.0041ebb0
lea edx, [esp + 0x18]
push edx
call fcn.0040f1c0
mov dword [esp + 0x28], vtable.Request.0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b8], 3
call fcn.0041dcb0
add esp, 4
mov byte [esp + 0x4b4], 4
mov esi, dword [eax]
mov eax, esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ea00
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00404d60
mov byte [esp + 0x4b4], 6
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x4b4], 7
push ebx
push 0x47bdd3
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00404d60
lea ecx, [esp + 0x70]
push ecx
sub esp, 0x1c
mov byte [esp + 0x4d4], 8
mov ecx, esp
mov dword [esp + 0xac], esp
push 0x38
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.http:__ttkvod.taogg.com:800_receive_ttkvod_2013_post.php
lea esi, [esp + 0x7c]
lea edi, [esp + 0x60]
mov byte [ecx + 4], bl
call fcn.00404d60
push 1
mov ecx, esi
mov edx, edi
call fcn.00426040
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jb 0x40eacd
mov edx, dword [esp + 0x58]
push edx
call fcn.004599df
add esp, 4
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x88], esi
jb 0x40eaef
mov eax, dword [esp + 0x74]
push eax
call fcn.004599df
add esp, 4
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
cmp dword [esp + 0x50], esi
jb 0x40eb14
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004599df
add esp, 4
mov byte [esp + 0x4b4], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eb48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4b4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4b4], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.004599ea
add esp, 0x4a4
ret 4