Function at 0x404dbc
Capabilities:
Get hostname

Disassembly:
mov eax, 0x414cd8
call fcn.0040d260
sub esp, 0x918
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 0x3f
xor edx, edx
pop ecx
and byte [ebp - 0x1fc], dl
xor eax, eax
lea edi, [ebp - 0x1fb]
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
add esi, 0x18
pop ebx
mov ecx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x64], edx
stosb byte es:[edi], al
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
call fcn.0040728e
xor edi, edi
cmp eax, edi
je 0x404e24
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x38], 0xc
jmp 0x404e4d
mov ecx, esi
call fcn.00407281
cmp eax, edi
je 0x404e3f
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x38], 0x14
jmp 0x404e4d
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x38], 0x54
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
mov dword [ebp - 0x30], edi
push dword [ebp - 0x28]
push edi
push 6
call sub.ZSPOOL.dll_EnumPrintersA
cmp dword [ebp - 0x14], edi
jne 0x404ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6ba
jne 0x404eb7
mov eax, dword [ebp - 0x20]
push 0xa1
lea esi, [eax + 0xbc]
mov ecx, esi
call fcn.0040a539
push 0xce
mov ecx, esi
mov edi, eax
call fcn.0040a539
mov esi, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x405460
mov eax, dword [ebp - 0x14]
add eax, 3
and al, 0xfc
call fcn.0040d320
mov ebx, esp
cmp ebx, edi
mov dword [ebp - 0x5c], ebx
jne 0x404f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
push 7
mov dword [ebp - 0x48], eax
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0xfc]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x54], str._alloca
mov dword [ebp - 0x50], str.FAILED_to_ALLOCA___
mov dword [ebp - 0x4c], str.Bytes_needed
push 0x416f10
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040d2d0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x28]
push edi
push 6
call sub.ZSPOOL.dll_EnumPrintersA
test eax, eax
jne 0x404f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
push 7
mov dword [ebp - 0x40], eax
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0xe0]
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x54], str.EnumPrinters
mov dword [ebp - 0x50], str.failed_to_enum_printers
mov dword [ebp - 0x4c], str.Bytes_needed
mov dword [ebp - 0x44], str.bytes_returned
push 0x416f10
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040d2d0
lea eax, [ebp - 0x1fc]
push 0x100
push eax
push 0x41c72c
push str.device
push str.windows
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
lea eax, [ebp - 0x1fc]
push 0x2c
push eax
call fcn.0040b44b
pop ecx
pop ecx
mov ecx, esi
call fcn.00407274
cmp eax, edi
jne 0x404fd7
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x30]
jae 0x40545d
push 0xc
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0040d7e0
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x90], 0x20008
jne 0x405010
mov eax, dword [ebx + 8]
jmp 0x405026
cmp eax, 2
jne 0x40501a
mov eax, dword [ebx + 4]
jmp 0x405026
cmp eax, 4
je 0x405024
cmp eax, 5
jne 0x405029
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x4053b1
and byte [ebp - 0x724], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x723]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x624]
mov dword [ebp - 0x60], esi
stosb byte es:[edi], al
mov dword [ebp - 0x68], esi
call fcn.00405617
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x724]
push 0x100
push eax
push esi
push str.SuperDriver
push dword [ebp - 0x1c]
call sub.ZSPOOL.dll_GetPrinterDataA
mov ebx, dword [ebp - 0x20]
cmp eax, esi
je 0x40509f
lea ecx, [ebx + 0x18]
call fcn.00407274
test eax, eax
je 0x4050a9
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x724]
push 0x100
push eax
push 0
push str.MasqPrinter
push dword [ebp - 0x1c]
call sub.ZSPOOL.dll_GetPrinterDataA
test eax, eax
jne 0x4050de
lea eax, [ebp - 0x724]
lea ecx, [ebp - 0x41c]
push eax
call fcn.0040b5a6
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call sub.ZSPOOL.dll_GetPrinterA
test eax, eax
jne 0x40510d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40510d
add eax, 3
and al, 0xfc
call fcn.0040d320
mov esi, esp
mov dword [ebp - 0x64], esi
test esi, esi
je 0x4053a3
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call sub.ZSPOOL.dll_GetPrinterA
test eax, eax
je 0x4053bf
test byte [esi + 0x34], 4
push 1
pop edi
je 0x40513e
mov dword [ebp - 0x210], edi
push dword [esi + 4]
lea eax, [ebp - 0x1fc]
push eax
call fcn.0040dee0
pop ecx
test eax, eax
pop ecx
jne 0x405159
mov dword [ebp - 0x210], edi
push dword [esi + 4]
lea ecx, [ebp - 0x624]
call fcn.0040b5a6
push dword [esi + 0x10]
lea ecx, [ebp - 0x520]
call fcn.0040b5a6
lea ecx, [ebx + 0x18]
call fcn.00407274
test eax, eax
jne 0x4051ac
mov eax, dword [esi]
test eax, eax
je 0x4051ac
cmp byte [eax], 0
je 0x4051ac
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00414410
pop ecx
test eax, eax
pop ecx
je 0x4051ac
push dword [esi]
lea ecx, [ebp - 0x318]
call fcn.0040b5a6
cmp dword [ebp - 0x214], 0
jne 0x4051ca
lea ecx, [ebp - 0x41c]
call fcn.0040b634
test eax, eax
je 0x4051ca
mov dword [ebp - 0x208], edi
lea esi, [ebx + 0xc]
mov edi, 0x419660
push edi
mov ecx, esi
mov dword [ebp - 0x24], 1
call fcn.0040623b
test eax, eax
jge 0x4051f9
push 0x41965c
mov ecx, esi
call fcn.0040623b
test eax, eax
jl 0x4052e5
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x824]
push eax
push edi
mov ecx, esi
mov dword [ebp - 0x14], 0x100
call fcn.0040611a
test eax, eax
je 0x405278
push edi
mov ecx, esi
call fcn.0040623b
test eax, eax
jl 0x405278
lea esi, [ebp - 0x824]
test esi, esi
je 0x405278
push 0
push esi
call fcn.0040b44b
pop ecx
mov ebx, eax
pop ecx
push 0x22
push esi
call fcn.0040b505
pop ecx
pop ecx
lea ecx, [ebp - 0x520]
call fcn.0040b591
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call fcn.0040de30
add esp, 0xc
test eax, eax
jne 0x405271
mov dword [ebp - 0x24], 1
mov esi, ebx
mov ebx, dword [ebp - 0x20]
jmp 0x40522d
lea eax, [ebp - 0x14]
lea esi, [ebx + 0xc]
push eax
lea eax, [ebp - 0x824]
mov edi, 0x41965c
push eax
push edi
mov ecx, esi
mov dword [ebp - 0x14], 0x100
call fcn.0040611a
test eax, eax
je 0x4052e5
push edi
mov ecx, esi
call fcn.0040623b
test eax, eax
jl 0x4052e5
lea esi, [ebp - 0x824]
test esi, esi
je 0x4052e5
push 0
push esi
call fcn.0040b44b
pop ecx
mov edi, eax
pop ecx
push 0x22
push esi
call fcn.0040b505
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x520]
call fcn.0040b5d5
test eax, eax
je 0x4052e1
mov dword [ebp - 0x24], 1
mov esi, edi
jmp 0x4052b0
push str.UNMASQ
lea ecx, [ebx + 0xc]
call fcn.0040623b
xor edi, edi
cmp eax, edi
jl 0x40530a
lea ecx, [ebp - 0x41c]
call fcn.0040b634
cmp eax, edi
je 0x40531f
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x24], edi
jne 0x40531f
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x20c], 1
lea ecx, [ebp - 0x520]
call fcn.0040b591
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.hp_Laserjet_1000
push eax
call esi
test eax, eax
je 0x405353
lea ecx, [ebp - 0x520]
call fcn.0040b591
push str.hp_Laserjet_1000_Dos
push eax
call esi
test eax, eax
jne 0x40538a
lea eax, [ebp - 0x68]
push eax
push 0x20019
push edi
push str.SOFTWAREHPhp_LaserJet_1000
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegOpenKeyExA]
test eax, eax
jne 0x40538a
push dword [ebp - 0x68]
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x20c], 1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x624]
push edx
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004054d3
push dword [ebp - 0x1c]
inc dword [ebp - 0x34]
call sub.ZSPOOL.dll_ClosePrinter
mov ebx, dword [ebp - 0x5c]
add ebx, dword [ebp - 0x38]
inc dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
jmp 0x404fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
push 7
mov dword [ebp - 0x40], eax
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0xc4]
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x54], str.GetPrinter
mov dword [ebp - 0x50], str.unable_to_GetPrinter_level_2_data
mov dword [ebp - 0x4c], str.hPrinter
mov dword [ebp - 0x44], str.Buffer
push 0x416f10
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040d2d0
push dword [ebp - 0x70]
lea eax, [ebp - 0x924]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push str.Desc:
push dword [ebp - 0x88]
push str.Last_Error_Code:
push dword [ebp - 0x84]
push str.Function:
push str.CLoadingDlg::BuildListOfInstalledPrinters_failed
push str._s__n_s_s__n_s_i__n_s_s__n_s:__i__n_s:__i
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x34], 0
add esp, 0x34
mov eax, 0x40545d
ret
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x930]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4