Function at 0x4337a0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5813e3
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1e4], 0
mov esi, 1
mov dword [ebp - 4], esi
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x433801
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 0x1e4], esi
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43382f
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 2
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43385f
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 4], 3
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43388f
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c0], esi
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4338c5
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 5
call fcn.0042f9c0
lea esi, [ebp - 0x1c8]
mov dword [ebp - 0x1cc], eax
call fcn.00430570
push str.Brmfcmon.ini
push eax
lea ecx, [ebp - 0x1d8]
push ecx
mov byte [ebp - 4], 6
call fcn.00404ad0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 7
call fcn.00401fb0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1d8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1dc]
push ecx
push 0
push str.MaskWinNtLPT
push str.BrStsWnd
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [ebp + 0xa8]
push edx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1d8], eax
call fcn.00401fb0
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 0
je 0x433f7c
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.00401fb0
lea ecx, [ebp - 0x1d0]
call fcn.00435f50
mov ecx, dword [ebp - 0x1d0]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
js 0x433b8a
push 0x5ba6f0
push ecx
call fcn.005580df
add esp, 8
test eax, eax
je 0x433b8a
sub eax, dword [ebp - 0x1d0]
cmp eax, 0xffffffff
je 0x433b8a
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1c8]
push str.SoftwareBrotherPeer_to_Peer_Print_LPR_
push eax
call fcn.00401790
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 8
call fcn.00401fb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433a57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1bc]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x433b78
mov eax, 4
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x1e0]
push eax
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1ec]
push ecx
lea edx, [ebp - 0x1c0]
push edx
push 0
push str.ResolveIP
push eax
call edi
test eax, eax
jne 0x433ad8
cmp dword [ebp - 0x1ec], 1
jne 0x433acb
push str.PrinterAddr
push 0x20
lea ecx, [ebp - 0x30]
push ecx
jmp 0x433ae3
push str.PrinterIP
push 0x20
lea edx, [ebp - 0x30]
push edx
jmp 0x433ae3
push str.PrinterAddr
push 0x20
lea eax, [ebp - 0x30]
push eax
call fcn.005599d2
add esp, 0xc
lea ecx, [ebp - 0x1e0]
push ecx
lea edx, [ebp - 0xb0]
push edx
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1c0]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push edx
mov dword [ebp - 0x1c0], 1
mov dword [ebp - 0x1e0], 0x80
mov byte [ebp - 0xb0], 0
call edi
test eax, eax
jne 0x433b57
cmp byte [ebp - 0xb0], al
je 0x433b57
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401bb0
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433b8a
lea ecx, [ebp + 0xa4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433b8a
lea eax, [ebp + 0xa4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
mov eax, dword [ebp - 0x1cc]
cmp eax, 3
jne 0x433d13
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1c8]
push str.SystemCurrentControlSetcontrolPrintMonitorsStandard_TCP_IP_PortPorts_
push edx
call fcn.00401790
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 9
call fcn.00401fb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433bea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1bc]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x433d07
mov byte [ebp - 0x1b4], al
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b4]
push ecx
lea edx, [ebp - 0x1c0]
push edx
push 0
push str.HostName
mov esi, 0x104
push eax
mov dword [ebp - 0x1c0], 1
mov dword [ebp - 0x1d4], esi
call edi
test eax, eax
jne 0x433c7e
cmp byte [ebp - 0x1b4], al
je 0x433c7e
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00401bb0
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433dd7
lea edx, [ebp - 0x1d4]
push edx
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
push 0
push str.IPAddress
push edx
mov dword [ebp - 0x1c0], 1
mov dword [ebp - 0x1d4], esi
call edi
test eax, eax
jne 0x433ce3
cmp byte [ebp - 0x1b4], al
je 0x433ce3
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401bb0
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433dd7
lea ecx, [ebp + 0xa4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433dd7
lea eax, [ebp + 0xa4]
push eax
jmp 0x433dcc
cmp eax, 2
jl 0x433dd7
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1c8]
push str.SystemCurrentControlSetcontrolPrintMonitorsLPR_PortPorts_
push edx
call fcn.00401790
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0xa
call fcn.00401fb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1bc]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x433dc5
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1c0]
push edx
push 0
push str.Server_Name
push eax
call edi
test eax, eax
jne 0x433dc5
mov ecx, dword [ebp - 0x1bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433dd7
lea edx, [ebp + 0xa4]
push edx
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
mov eax, dword [ebp - 0x1c4]
cmp dword [eax - 0xc], 0
jne 0x433f7c
cmp dword [ebp - 0x1cc], 2
jl 0x433dfd
cmp dword [ebp - 0x1d8], 0
jne 0x433f7c
mov ecx, dword [ebp - 0x1b8]
push str.BRMFC:
push ecx
call fcn.00557b8d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x433f7c
mov eax, dword [ebp - 0x1b8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c8], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0xa0]
add eax, 0xfffffff0
mov dword [ebp - 0x1d8], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.00432af0
test eax, eax
jne 0x433f7c
cmp dword [ebp - 0x1cc], 2
jge 0x433ea7
push str.BRUSB
lea ecx, [ebp - 0x1b8]
call fcn.00401890
test eax, eax
jle 0x433f7c
lea edx, [ebp + 0xa4]
push edx
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
jmp 0x433f7c
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 6
jl 0x433f7c
lea ecx, [ebp - 0x1b8]
call fcn.00435f50
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 0
jl 0x433f7c
push 0x5b7a58
push eax
call fcn.005580df
add esp, 8
test eax, eax
je 0x433f7c
mov ecx, dword [ebp - 0x1b8]
sub eax, ecx
cmp eax, 0xffffffff
je 0x433f7c
cmp dword [ecx - 0xc], 0
jge 0x433f04
or edx, 0xffffffff
jmp 0x433f25
push 0x5b7a58
push ecx
call fcn.005580df
mov ecx, dword [ebp - 0x1b8]
add esp, 8
test eax, eax
jne 0x433f21
or edx, 0xffffffff
jmp 0x433f25
sub eax, ecx
mov edx, eax
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 3
push eax
lea ecx, [ebp - 0x1cc]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00404910
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.005587f7
dec eax
add esp, 4
cmp eax, 0x3e5
ja 0x433f6d
lea eax, [ebp + 0xa4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401fb0
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 5
call fcn.00402020
mov esi, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1b8]
push ecx
mov ecx, esi
call fcn.00401fb0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1dc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x433fb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1b8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
call fcn.00402580
mov eax, esi
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.005578df
mov esp, ebp
pop ebp
ret 0x1dc