Function at 0x451ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584658
mov eax, dword fs:[0]
push eax
sub esp, 0x328
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
lea edi, [esp + 0x5c]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov dword [esp + 0x344], 0
call fcn.00401000
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451b3c
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x340], 1
cmp dword [esp + 0x90], 4
je 0x4522dd
lea esi, [esp + 0x28]
mov edi, 0x5f38c8
call fcn.0040b250
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x344], 2
call fcn.004037d0
mov byte [esp + 0x340], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
push 0x5c07c8
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
push 1
mov ecx, 0x5f38c8
call fcn.004623d1
xor ebx, ebx
nop
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x451b32
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x340], 3
mov dword [esp + 0x28], 0x208
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x451c2a
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00403620
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push esi
call sub.WINSPOOL.DRV_Ordinal_203
test eax, eax
je 0x451d32
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00551122
add esp, 8
test eax, eax
jl 0x451da7
cmp eax, dword [esi - 8]
jg 0x451da7
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp dword [esi - 0xc], edx
je 0x451d38
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
xor edi, edi
or ecx, eax
jge 0x451c8c
push edi
lea ecx, [esp + 0x1c]
call fcn.00403620
mov esi, dword [esp + 0x18]
test esi, esi
je 0x451d32
cmp word [esi], 0
je 0x451d32
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x48], 8
call sub.WINSPOOL.DRV_OpenPrinterW
cmp eax, 1
jne 0x451cd3
mov edi, dword [esp + 0x1c]
jmp 0x451cd7
test eax, eax
je 0x451d32
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.004120f0
add esp, 4
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00404050
add esp, 8
test al, al
jne 0x451d0c
lea ecx, [esp + 0x18]
call fcn.00403950
mov esi, dword [esp + 0x18]
push edi
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jne 0x451db1
lea edi, [ebx + 1]
push edi
push str.GetDefaultPrinter_Fail_Try_Again__d__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
cmp dword [0x5f3994], 0
jne 0x451dff
call fcn.004117a0
test eax, eax
jne 0x451dff
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi - 0x10]
mov byte [esp + 0x340], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, edi
cmp ebx, 6
jl 0x451bd0
jmp 0x451e23
push 0x80070057
call fcn.004038e0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.004037d0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00403760
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00424780
mov byte [esp + 0x340], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x451e23
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x451e23
add esi, 0xfffffff0
mov byte [esp + 0x340], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451e23
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp dword [esp + 0x74], 0
mov esi, dword [0x5f3980]
je 0x4520c7
push str.Set_fax_port_enter._r_n
mov eax, 0x5f38b8
call fcn.004053d0
mov edi, dword [esp + 0x30]
add esp, 4
cmp dword [edi - 0xc], 0
je 0x4520a3
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451e6e
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x340], 4
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451ea0
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x340], 5
cmp esi, 9
je 0x451ed4
cmp esi, 7
je 0x451ed4
push 5
push str._NWCN
lea ecx, [esp + 0x24]
call fcn.004036a0
jmp 0x451ee7
push edi
lea ecx, [esp + 0x20]
push str._Que:__s_
push ecx
call fcn.00404130
add esp, 0xc
push 0x36
push str._ProgramFiles__Epson_Software_Fax_Utility_EPFDPSET.exe
lea ecx, [esp + 0x20]
call fcn.004036a0
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451f11
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0
mov byte [esp + 0x344], 6
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push ecx
call ebx
mov edi, eax
test edi, edi
jle 0x451f91
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x451f5f
push edi
lea ecx, [esp + 0x18]
call fcn.00403620
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edi
push esi
push edx
call ebx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00551122
add esp, 8
test eax, eax
jl 0x451da7
cmp eax, dword [esi - 8]
jg 0x451da7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x451fa3
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.004037d0
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
test eax, eax
je 0x451fad
mov eax, dword [eax + 0x20]
mov edi, dword [esp + 0x1c]
push eax
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x34c], 7
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x34c], 6
call fcn.00436af0
test eax, eax
je 0x452037
push 1
push ecx
mov dword [esp + 0x28], esp
mov ebx, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x34c], 8
mov dword [esp + 0x30], esp
mov ebx, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x34c], 6
call fcn.00411bf0
add esp, 0xc
mov byte [esp + 0x340], 5
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452058
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x340], 4
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 0x452080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x340], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4520b5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x4520b5
push str.Unknown_printer_name..._r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
push str.Set_fax_port_leave._r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
cmp dword [esp + 0x90], 5
jne 0x4522ab
cmp dword [0x5f3a9c], 1
mov eax, dword [0x5f3a98]
mov dword [esp + 0x34], eax
jne 0x4522ab
push 0
lea ecx, [esp + 0xe8]
push ecx
call fcn.00424800
lea edi, [esp + 0x40]
call fcn.004244c0
mov byte [esp + 0x340], 0xa
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x452125
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.kernel32
mov byte [esp + 0x344], 0xb
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x452184
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x14], 0
test esi, esi
je 0x452184
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], 0
je 0x452184
push 0x10
push str.StatusMonitorx64
jmp 0x45218b
push 0x10
push str.StatusMonitorx86
lea ecx, [esp + 0x24]
call fcn.004036a0
mov esi, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x44]
push edx
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push esi
mov dword [esp + 0x24], esi
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [esp + 0xf0]
push eax
call fcn.00426730
cmp eax, 1
jne 0x45226d
mov eax, dword [ebp + 8]
test eax, eax
je 0x4521db
mov eax, dword [eax + 0x20]
mov esi, dword [esp + 0x44]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x34c], 0xc
mov edi, dword [esp + 0x4c]
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x34c], 0xb
call fcn.00436af0
test eax, eax
je 0x452269
push 1
push ecx
mov dword [esp + 0x28], esp
mov ebx, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x34c], 0xd
mov dword [esp + 0x30], esp
mov esi, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x34c], 0xb
call fcn.00411bf0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov byte [esp + 0x340], 0xa
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45228e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea esi, [esp + 0x40]
call fcn.00426690
lea ecx, [esp + 0xe4]
mov byte [esp + 0x340], 1
call fcn.00424950
cmp dword [esp + 0x64], 0
je 0x452615
cmp dword [0x5f3980], 7
jne 0x452615
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4522f5
push 0x80004005
call fcn.004038e0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5b25a8
call fcn.00403320
call fcn.00424780
jmp 0x4522b6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x340], 0xe
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x452327
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x340], 0xf
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x452359
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ecx, ecx
mov byte [esp + 0x340], 0x10
cmp dword [esp + 0x90], 4
mov eax, dword [esp + 0x88]
sete cl
add eax, 0xfffffff0
lea esi, [esp + 0x14]
push ecx
push ecx
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004115f0
mov edi, dword [esp + 0x1c]
add esp, 8
cmp dword [edi - 0xc], 0
je 0x45259d
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ScannerID
call fcn.00403320
push ecx
mov byte [esp + 0x348], 0x11
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Version
call fcn.00403320
push ecx
mov byte [esp + 0x34c], 0x12
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
lea edx, [esp + 0x2c]
add esp, 4
mov dword [esi], eax
push edx
mov byte [esp + 0x350], 0x10
call fcn.00413730
add esp, 0x10
mov byte [esp + 0x340], 0x13
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x452575
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x452449
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x344], 0x14
call fcn.00437020
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 0x15
call fcn.004037d0
mov byte [esp + 0x340], 0x14
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4524a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str._ID:_s_LOCAL
push edx
call fcn.00404130
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x4524c6
mov eax, dword [eax + 0x20]
mov edi, dword [esp + 0x18]
push eax
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x34c], 0x16
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
mov dword [esp + 0x40], esp
mov ebx, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [esp + 0x34c], 0x14
call fcn.00436af0
test eax, eax
je 0x452554
push 0
push ecx
mov dword [esp + 0x3c], esp
mov ebx, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x34c], 0x17
mov dword [esp + 0x3c], esp
mov edi, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x34c], 0x14
call fcn.00411bf0
add esp, 0xc
mov byte [esp + 0x340], 0x13
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452575
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x340], 0x10
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 0x45259d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x340], 0xf
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4525c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x340], 0xe
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4525ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x340], 1
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 0x452615
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, 0x5f38c8
call fcn.004623d1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push 0
push 0
push 0x401
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x340], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45265f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x340], 0xffffffff
mov eax, dword [esp + 0xe0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45268d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xdc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4526b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x80]
call fcn.00401fa0
xor eax, eax
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4