Function at 0x4777c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9d90
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.0051d620
test al, al
jne 0x477845
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
push str.Current_directory_could_not_be_located
jmp 0x477a4d
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.0051de40
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x47787e
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.0051de40
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4778b7
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 0x47790e
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
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.00440ae0
add esp, 0x1c
jmp 0x477a6b
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x5c]
push eax
call fcn.00425630
mov ecx, dword [ebp - 0x60]
push eax
call fcn.0040d2b0
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x47792e
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 0x47795a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00409510
test bl, bl
je 0x477975
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
push str.Serial_Workflow_ID_not_specified_in_config.xml
jmp 0x477a4d
mov ecx, esi
call fcn.0051d6c0
test al, al
je 0x477a3f
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.0051de40
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.0051de40
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004087d0
mov ecx, edi
call fcn.0051d510
test al, al
jne 0x477a01
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
push str.Failed_to_get_temp_path
jmp 0x477a4d
lea ecx, [ebp - 0x44]
call fcn.0041e6e0
push ecx
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0051de40
push 0
push 0
push 1
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00520170
add esp, 0x10
test al, al
jne 0x477a3b
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
push str.Failed_to_copy_oobelib.xml_to_temp_location.
jmp 0x477a4d
mov bl, 1
jmp 0x477a6d
mov eax, fcn.00440ae0
test eax, eax
je 0x477a6b
push str.AAM_path_could_not_be_located
push 0x5f8398
push 0x5f8398
push str.WorkflowManager
push 0x5f8398
push 0x1e
call fcn.00440ae0
add esp, 0x18
xor bl, bl
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x477a82
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 0x477aab
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.0057608a
mov esp, ebp
pop ebp
ret 0xc