Function at 0x477a60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca370
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x64a070]
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 ebx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0051df90
test al, al
jne 0x477ae5
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
push str.Current_directory_could_not_be_located
jmp 0x477ced
push str.resources
lea ecx, [ebp - 0x5c]
call fcn.00408810
push ecx
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x477b1e
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
push str.oobelib.xml
lea ecx, [ebp - 0x5c]
call fcn.00408810
push ecx
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0051e7b0
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x477b57
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x477bae
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.oobelib_xml_doesnt_exist_at_path:__s
push 0x5f8398
push 0x5f8398
push str.WorkflowManager
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x1c
jmp 0x477d0b
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x5c]
push eax
call fcn.004257e0
mov ecx, dword [ebp - 0x60]
push eax
call fcn.0040d2b0
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x477bce
mov eax, dword [eax]
push 0
push 0x5f8398
push dword [ecx]
push eax
call fcn.0040ac30
add esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x48]
sete bl
cmp eax, 8
jb 0x477bfa
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
test bl, bl
je 0x477c15
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
push str.Serial_Workflow_ID_not_specified_in_config.xml
jmp 0x477ced
mov ecx, esi
call fcn.0051e030
test al, al
je 0x477cdf
push str.OOBEPDApp
mov ecx, esi
call fcn.0040c4b0
push str.core
lea ecx, [ebp - 0x5c]
call fcn.00408810
push ecx
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004087d0
push str.PDapp.exe
lea ecx, [ebp - 0x5c]
call fcn.00408810
push ecx
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.0051e7b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004087d0
mov ecx, edi
call fcn.0051de80
test al, al
jne 0x477ca1
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
push str.Failed_to_get_temp_path
jmp 0x477ced
lea ecx, [ebp - 0x44]
call fcn.0041e890
push ecx
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0051e7b0
push 0
push 0
push 1
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00520ae0
add esp, 0x10
test al, al
jne 0x477cdb
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
push str.Failed_to_copy_oobelib.xml_to_temp_location.
jmp 0x477ced
mov bl, 1
jmp 0x477d0d
mov eax, fcn.00440db0
test eax, eax
je 0x477d0b
push str.AAM_path_could_not_be_located
push 0x5f8398
push 0x5f8398
push str.WorkflowManager
push 0x5f8398
push 0x1e
call fcn.00440db0
add esp, 0x18
xor bl, bl
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x477d22
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00409510
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x477d4b
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00409510
mov al, bl
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.005765b2
mov esp, ebp
pop ebp
ret 0xc