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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587833
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5f01b4]
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.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4387e1
push 0x80004005
call fcn.004020e0
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.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43880f
push 0x80004005
call fcn.004020e0
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.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43883f
push 0x80004005
call fcn.004020e0
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.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43886f
push 0x80004005
call fcn.004020e0
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.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4388a5
push 0x80004005
call fcn.004020e0
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.00434990
lea esi, [ebp - 0x1c8]
mov dword [ebp - 0x1cc], eax
call fcn.00435540
push str.Brmfcmon.ini
push eax
lea ecx, [ebp - 0x1d8]
push ecx
mov byte [ebp - 4], 6
call fcn.00404ea0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 7
call fcn.00402070
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 0x438920
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 0x438946
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.00402070
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 0
je 0x438f5c
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.00402070
lea ecx, [ebp - 0x1d0]
call fcn.0043b0c0
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 0x438b6a
push 0x5c0f10
push ecx
call fcn.0055e33a
add esp, 8
test eax, eax
je 0x438b6a
sub eax, dword [ebp - 0x1d0]
cmp eax, 0xffffffff
je 0x438b6a
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1c8]
push str.SoftwareBrotherPeer_to_Peer_Print_LPR_
push eax
call fcn.00401840
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 8
call fcn.00402070
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 0x438a37
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 0x438b58
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 0x438ab8
cmp dword [ebp - 0x1ec], 1
jne 0x438aab
push str.PrinterAddr
push 0x20
lea ecx, [ebp - 0x30]
push ecx
jmp 0x438ac3
push str.PrinterIP
push 0x20
lea edx, [ebp - 0x30]
push edx
jmp 0x438ac3
push str.PrinterAddr
push 0x20
lea eax, [ebp - 0x30]
push eax
call fcn.0055fc32
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 0x438b37
cmp byte [ebp - 0xb0], al
je 0x438b37
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401c60
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438b6a
lea ecx, [ebp + 0xa4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00402070
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438b6a
lea eax, [ebp + 0xa4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00402070
mov eax, dword [ebp - 0x1cc]
cmp eax, 3
jne 0x438cf3
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1c8]
push str.SystemCurrentControlSetcontrolPrintMonitorsStandard_TCP_IP_PortPorts_
push edx
call fcn.00401840
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 9
call fcn.00402070
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 0x438bca
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 0x438ce7
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 0x438c5e
cmp byte [ebp - 0x1b4], al
je 0x438c5e
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00401c60
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438db7
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 0x438cc3
cmp byte [ebp - 0x1b4], al
je 0x438cc3
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00401c60
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438db7
lea ecx, [ebp + 0xa4]
push ecx
lea ecx, [ebp - 0x1b8]
call fcn.00402070
mov edx, dword [ebp - 0x1bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438db7
lea eax, [ebp + 0xa4]
push eax
jmp 0x438dac
cmp eax, 2
jl 0x438db7
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1c8]
push str.SystemCurrentControlSetcontrolPrintMonitorsLPR_PortPorts_
push edx
call fcn.00401840
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0xa
call fcn.00402070
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 0x438d4d
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 0x438da5
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 0x438da5
mov ecx, dword [ebp - 0x1bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438db7
lea edx, [ebp + 0xa4]
push edx
lea ecx, [ebp - 0x1b8]
call fcn.00402070
mov eax, dword [ebp - 0x1c4]
cmp dword [eax - 0xc], 0
jne 0x438f5c
cmp dword [ebp - 0x1cc], 2
jl 0x438ddd
cmp dword [ebp - 0x1d8], 0
jne 0x438f5c
mov ecx, dword [ebp - 0x1b8]
push str.BRMFC:
push ecx
call fcn.0055de44
add esp, 8
test eax, eax
sete al
test al, al
jne 0x438f5c
mov eax, dword [ebp - 0x1b8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c8], esp
mov esi, esp
push eax
call fcn.00402000
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.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.00437ac0
test eax, eax
jne 0x438f5c
cmp dword [ebp - 0x1cc], 2
jge 0x438e87
push str.BRUSB
lea ecx, [ebp - 0x1b8]
call fcn.00401940
test eax, eax
jle 0x438f5c
lea edx, [ebp + 0xa4]
push edx
lea ecx, [ebp - 0x1b8]
call fcn.00402070
jmp 0x438f5c
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 6
jl 0x438f5c
lea ecx, [ebp - 0x1b8]
call fcn.0043b0c0
mov eax, dword [ebp - 0x1b8]
cmp dword [eax - 0xc], 0
jl 0x438f5c
push 0x5bda54
push eax
call fcn.0055e33a
add esp, 8
test eax, eax
je 0x438f5c
mov ecx, dword [ebp - 0x1b8]
sub eax, ecx
cmp eax, 0xffffffff
je 0x438f5c
cmp dword [ecx - 0xc], 0
jge 0x438ee4
or edx, 0xffffffff
jmp 0x438f05
push 0x5bda54
push ecx
call fcn.0055e33a
mov ecx, dword [ebp - 0x1b8]
add esp, 8
test eax, eax
jne 0x438f01
or edx, 0xffffffff
jmp 0x438f05
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.00404ce0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x1cc]
push edx
call fcn.0055ea57
dec eax
add esp, 4
cmp eax, 0x3e5
ja 0x438f4d
lea eax, [ebp + 0xa4]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00402070
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 5
call fcn.00402120
mov esi, dword [ebp - 0x1e8]
lea ecx, [ebp - 0x1b8]
push ecx
mov ecx, esi
call fcn.00402070
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 0x438f96
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 0x438fbc
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 0x438fe2
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 0x439008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 8]
call fcn.004026e0
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.0055db96
mov esp, ebp
pop ebp
ret 0x1fc