Function at 0x4685a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed928
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x68cae0]
cmp eax, dword [edx + 4]
jle 0x468630
push 0x68cae0
call fcn.0059a283
add esp, 4
cmp dword [0x68cae0], 0xffffffff
jne 0x468630
xor eax, eax
mov dword [0x68cac4], 7
push 0x603c10
mov dword [0x68cac0], 0
mov word [0x68cab0], ax
call fcn.00599f0a
add esp, 4
push 0x68cae0
call fcn.0059a244
add esp, 4
cmp dword [0x68cac4], 8
mov eax, 0x68cab0
mov dword [0x68cac0], 0
cmovae eax, dword [0x68cab0]
xor ecx, ecx
mov word [eax], cx
cmp dword [0x68cac0], ecx
sete al
test al, al
je 0x468816
mov edx, esi
call fcn.004683b0
mov esi, eax
cmp dword [esi + 0x10], 0
sete al
test al, al
jne 0x46871d
cmp dword [esi + 0x14], 8
jb 0x468685
mov eax, dword [esi]
jmp 0x468687
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46871d
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.0049dd10
add esp, 4
test al, al
je 0x46870e
cmp dword [ebp - 0x18], 0x26
jb 0x4686e2
push 0x26
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a860
push eax
mov ecx, 0x68cab0
call fcn.0040a8a0
jmp 0x468706
cmp dword [esi + 0x14], 8
jb 0x4686ec
mov eax, dword [esi]
jmp 0x4686ee
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00406e60
push ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.0041f740
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00406e20
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406e20
cmp dword [0x68cac0], 0
sete al
test al, al
je 0x468816
call fcn.0041f670
test al, al
jne 0x468747
push str.WDEFAULT_D7CA_4F31_B4C0_15DB86C98250
mov ecx, 0x68cab0
call fcn.00407010
cmp dword [0x68cac4], 8
lea ecx, [ebp - 0x28]
mov eax, 0x68cab0
cmovae eax, dword [0x68cab0]
push eax
call fcn.00406e60
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x468774
mov eax, dword [esi]
jmp 0x468776
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00406e60
push 0
push edi
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0049da70
add esp, 8
test al, al
mov eax, dword [ebp - 0x2c]
sete bl
cmp eax, 8
jb 0x4687ae
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4687de
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
je 0x468816
test edi, edi
je 0x468816
cmp dword [esi + 0x14], 8
jb 0x468802
mov esi, dword [esi]
mov ecx, dword [edi]
push esi
push str.Failed_to_create_workflowID_file_at:__s
push 0x61baf2
push edi
call dword [ecx + 0x18]
add esp, 0x10
mov eax, 0x68cab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret