Function at 0x479bd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x12c
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
test ebp, ebp
push edi
jne 0x479c05
push 1
push ebp
push str.Invalid_PPD_file_name_
push str.PPDInit
call fcn.00479b50
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
mov eax, dword [esp + 0x140]
mov esi, dword [sym.imp.MSVCRT.dll__strdup]
push eax
call esi
push ebp
mov dword [0x658e1c], eax
call esi
push 0x505fb0
mov dword [0x658e18], eax
call sub.MSVCRT.dll_getenv
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0xc
test eax, eax
je 0x479d18
push 0x505fac
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
je 0x479d18
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x2f
je 0x479cba
mov edi, 0x505fa8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x505fa4
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
mov dword [0x658e58], eax
test eax, eax
jne 0x479e0a
push 0x505fac
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
jne 0x479c54
mov ecx, dword [esp + 0x140]
push 0x505fac
push ecx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
je 0x479df6
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x2f
je 0x479d9c
mov edi, 0x505fa8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x505fa4
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
mov dword [0x658e58], eax
test eax, eax
jne 0x479e0a
push 0x505fac
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
jne 0x479d36
push 0x505fa4
push ebp
call ebx
add esp, 8
mov dword [0x658e58], eax
test eax, eax
je 0x479e17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
push ebp
lea ecx, [esp + 0xdc]
push str.Unable_to_open__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
lea edx, [esp + 0xe8]
push 0
push edx
push str.PPDInit
call fcn.00479b50
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret