Function at 0x470d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526310
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1820
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x47109d
test ebx, ebx
je 0x47109d
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470d60
sub eax, edx
sar eax, 1
je 0x47109d
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
push 0xff
push ebx
push pe_nt_image_headers32
lea ecx, [esi + 0xa0c]
push ecx
call fcn.004fa71b
add esp, 0x10
mov dword [esi], edi
add edi, 0xe230
jne 0x470dcc
push str.Registry_Manager_was_not_be_initialized___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x1824], 0xd
push 0x5814b0
lea edx, [ebp - 0x1824]
push edx
call fcn.004fd5a3
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [esi + 8], 0
push 1
push 0x800
lea ecx, [ebp - 0x818]
push ecx
push 0x53e0f8
mov edx, dword [edi]
push edx
mov edx, str.InstallingSetupTestPage
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x470eb6
push 0x55e174
lea eax, [ebp - 0x818]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x470e38
mov dword [esi + 8], 1
jmp 0x470edb
push str.COMMON
lea ecx, [ebp - 0x818]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x470ed4
push str.SYSTEM
lea edx, [ebp - 0x818]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x470e75
mov dword [esi + 8], 2
jmp 0x470edb
push str.DEMO
lea eax, [ebp - 0x818]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x470e96
mov dword [esi + 8], 3
jmp 0x470edb
push str.COMMON
lea ecx, [ebp - 0x818]
push ecx
push str.Test_page_type_is___s__is_invalid.._So_test_page_type_is_set_as___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
jmp 0x470ed4
push 0x3ff
push str.COMMON
push 0x400
lea edx, [ebp - 0x818]
push edx
call fcn.004fa71b
add esp, 0x10
mov dword [esi + 8], 0
lea eax, [ebp - 0x818]
push eax
push str.Test_page_type_is___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov edx, ebx
mov ecx, esi
call fcn.004722d0
mov ebx, eax
mov dword [ebp - 0x181c], ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x470f15
cmp eax, 1
jne 0x47102d
push 0x800
push 0
lea ecx, [ebp - 0x1818]
push ecx
call fcn.004fd670
add esp, 0xc
lea edx, [ebp - 0x818]
push edx
push str.InstallingSetupTestPage
push 0x535a74
lea edx, [ebp - 0x1818]
call fcn.00404380
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.004fd670
add esp, 0xc
push 1
push 0x800
lea ecx, [ebp - 0x818]
push ecx
push str.FILE
mov edx, dword [edi]
push edx
lea edx, [ebp - 0x1818]
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x470fca
mov eax, dword [esi + 8]
test eax, eax
jne 0x470fa7
push 0x3ff
push str._SRC_DIR_SetupDataPrintJob__MFG_.CI3
push 0x400
lea eax, [ebp - 0x818]
push eax
jmp 0x470fc2
cmp eax, 1
jne 0x470fca
push 0x3ff
push str._SRC_DIR_SetupDataTestpage.prn
push 0x400
lea ecx, [ebp - 0x818]
push ecx
call fcn.004fa71b
add esp, 0x10
push 0
push 0x400
lea edx, [ebp - 0x1018]
push edx
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [esi]
call fcn.00480760
lea ecx, [ebp - 0x1018]
push ecx
push str.Data_file_is___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x471069
push 0x3ff
lea eax, [ebp - 0x1018]
push eax
push 0x400
lea ecx, [esi + 0xc]
push ecx
call fcn.004fa71b
add esp, 0x10
test ebx, ebx
jne 0x47103e
mov ecx, esi
call fcn.00471120
mov dword [ebp - 0x181c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x181c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x1018]
push edx
push str.the_Data_file_does_not_exist___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x1828], 0xd
push 0x5814b0
lea eax, [ebp - 0x1828]
push eax
call fcn.004fd5a3
push str.Invalid_Parameters___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x1820], 0x57
push 0x5814b0
lea ecx, [ebp - 0x1820]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x1830]
mov dword [ebp - 0x181c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4710e3
ret