Function at 0x401070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
mov dword [0x4554f0], 0
push eax
push 1
push 0
push str.SoftwareWTware
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40127b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push ecx
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 0x100
push 0x100
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x3c], 0x100
mov dword [ebp - 0x34], eax
call fcn.00401400
test al, al
jne 0x40111a
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x6c
push str.e:workwtdhcp.._common_heapmem.h
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x401249
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push str.BindIP
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401176
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x31
push str.....common_bindIPsList.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
test esi, esi
je 0x40118c
push str.No_BindIP_key_found_in_registry.
call fcn.0040adf0
add esp, 4
jmp 0x401269
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
mov esi, edi
mov dword [ebp - 0x24], esi
cmp byte [edi], 0
je 0x401269
nop
mov eax, esi
sub eax, edi
cmp eax, dword [ebp - 0x28]
jae 0x401269
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea edx, [ebp - 0x2c]
call fcn.004014d0
add esp, 4
test al, al
je 0x401237
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401350
push eax
push str.BindIP:__s
call fcn.0040adf0
mov esi, dword [ebp - 0x24]
add esp, 8
mov edx, dword [ebp - 0x28]
mov ecx, esi
sub ecx, edi
mov al, byte [esi]
test al, al
je 0x4011f4
cmp al, 0xd
je 0x4011f4
cmp al, 0xa
jne 0x4011fc
cmp ecx, edx
ja 0x4011fc
inc esi
inc ecx
jmp 0x4011e6
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
push eax
call fcn.004012c0
test al, al
jne 0x40122c
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x4f
push str.....common_bindIPsList.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
cmp byte [esi], 0
jne 0x4011a0
jmp 0x401269
push dword [ebp - 0x24]
push str.Incorrect_line_in_BindIP_list:__s.
call fcn.0040adf0
add esp, 8
jmp 0x401269
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x2b
push str.....common_bindIPsList.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40129b
push eax
call fcn.00426cde
add esp, 4
jmp 0x40129b
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x26
push str.....common_bindIPsList.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret