Function at 0x100060f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x10054853
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10066060]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10066060]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x124]
push eax
mov dword [esp + 0x48], eax
call fcn.10005a70
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x1000689d
mov al, byte [0x1006aa79]
lea esi, [edi + 0x54]
mov ebp, 8
mov byte [esp + 0x1b], al
mov dword [esp + 0x40], esi
cmp dword [esi + 0x18], ebp
jb 0x1000616e
mov eax, dword [esi + 4]
jmp 0x10006171
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, esi
jne 0x10006181
lea eax, [edi + 0x38]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0xf8], cx
mov esi, 7
push ebx
lea ecx, [esp + 0xf8]
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
call fcn.10008d90
mov dword [esp + 0x11c], ebx
mov dword [esp + 0xb4], esi
xor edx, edx
push 0xa
mov eax, 0x10058028
lea esi, [esp + 0xa0]
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], dx
call fcn.10009f80
lea eax, [edi + 0x1c]
mov byte [esp + 0x11c], 1
cmp dword [eax + 0x18], ebp
jb 0x100061f4
mov eax, dword [eax + 4]
jmp 0x100061f7
add eax, 4
push eax
push 0x10058040
lea esi, [esp + 0x28]
call fcn.1001f56b
add esp, 8
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x124], 2
call fcn.10009de0
mov byte [esp + 0x11c], 1
cmp dword [esp + 0x38], ebp
jb 0x1000623d
mov eax, dword [esp + 0x24]
push eax
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0xf4]
cmp dword [esp + 0x108], ebp
jae 0x10006254
lea eax, [esp + 0xf4]
push eax
push 0x10058054
lea esi, [esp + 0x28]
call fcn.1001f56b
add esp, 8
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x124], 3
call fcn.10009de0
mov byte [esp + 0x11c], 1
cmp dword [esp + 0x38], ebp
jb 0x1000629a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100378fa
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x100062b3
push 0xa
mov eax, 0x10058064
lea ecx, [esp + 0xa0]
call fcn.10009ea0
push 0xb
mov eax, 0x1005807c
lea ecx, [esp + 0xa0]
call fcn.10009ea0
push str.wfchost.exe
lea edx, [esp + 0xd8]
push ebx
push edx
call fcn.1002f917
add esp, 0xc
mov byte [esp + 0x11c], 4
xor eax, eax
mov word [esp + 0xbc], ax
mov edi, 7
push 0xe
mov eax, str._printRequest
lea esi, [esp + 0xbc]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
call fcn.10009f80
cmp byte [esp + 0x1b], bl
je 0x1000673b
and dword [esp + 0x6c], 0xfffffe00
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
push 0x1006a1c8
mov byte [esp + 0x120], 7
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor ecx, ecx
mov word [esp + 0x4c], cx
mov ecx, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x10006360
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x4c]
call fcn.10009f80
mov edx, esi
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x124], 8
call fcn.10001480
mov byte [esp + 0x124], 9
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, dword [eax + 0x14]
mov ebp, 0x10
mov dword [esp + 0x54], esp
cmp dword [eax + 0x18], ebp
jb 0x100063c5
mov eax, dword [eax + 4]
jmp 0x100063c8
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.procName
lea ecx, [esp + 0x80]
push ecx
mov ecx, 0x100580bc
mov byte [esp + 0x13c], 0xa
call fcn.10026324
mov edi, eax
mov byte [esp + 0x134], 9
call fcn.100256e1
cmp dword [esp + 0x38], ebp
jb 0x10006414
mov edx, dword [esp + 0x24]
push edx
call fcn.100378fa
add esp, 4
mov byte [esp + 0x11c], 7
cmp dword [esp + 0x60], 8
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x10006440
mov eax, dword [esp + 0x4c]
push eax
call fcn.100378fa
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0x1c
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10001480
mov byte [esp + 0x124], 0xb
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x54], esp
cmp dword [eax + 0x18], ebp
jb 0x10006484
mov eax, dword [eax + 4]
jmp 0x10006487
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.printer
lea edx, [esp + 0x80]
push edx
mov ecx, 0x1005801f
mov byte [esp + 0x13c], 0xc
call fcn.10026324
mov edi, eax
mov byte [esp + 0x134], 0xb
call fcn.100256e1
mov byte [esp + 0x11c], 7
cmp dword [esp + 0x38], ebp
jb 0x100064db
mov eax, dword [esp + 0x24]
push eax
call fcn.100378fa
add esp, 4
mov ecx, dword [esp + 0x1c]
add ecx, 0x38
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10001480
mov byte [esp + 0x124], 0xd
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x54], esp
cmp dword [eax + 0x18], ebp
jb 0x1000651f
mov eax, dword [eax + 4]
jmp 0x10006522
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.docName
lea eax, [esp + 0x80]
push eax
mov ecx, 0x10058027
mov byte [esp + 0x13c], 0xe
call fcn.10026324
mov edi, eax
mov byte [esp + 0x134], 0xd
call fcn.100256e1
mov byte [esp + 0x11c], 7
cmp dword [esp + 0x38], ebp
jb 0x10006576
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100378fa
add esp, 4
mov esi, dword [esp + 0x40]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x10006589
mov eax, dword [esi + 4]
jmp 0x1000658c
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006634
lea edx, [esp + 0x20]
push esi
push edx
call fcn.10001480
mov byte [esp + 0x124], 0xf
sub esp, 0x10
mov esi, esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, dword [eax + 0x14]
mov dword [esp + 0x54], esp
cmp dword [eax + 0x18], ebp
jb 0x100065d8
mov eax, dword [eax + 4]
jmp 0x100065db
add eax, 4
push eax
call fcn.10024f03
add esp, 4
mov dword [esi], eax
push str.file
lea eax, [esp + 0x80]
push eax
mov ecx, 0x10057cc4
mov byte [esp + 0x13c], 0x10
call fcn.10026324
mov edi, eax
mov byte [esp + 0x134], 0xf
call fcn.100256e1
mov byte [esp + 0x11c], 7
cmp dword [esp + 0x38], ebp
jb 0x1000662f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100378fa
add esp, 4
mov edi, 8
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x84]
call fcn.100269ff
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x124], 0x11
call fcn.1002f159
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x12c], 0x12
call fcn.10001400
add esp, 0x10
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x124], 0x13
call fcn.10009de0
cmp dword [esp + 0x38], edi
jb 0x1000669a
mov edx, dword [esp + 0x24]
push edx
call fcn.100378fa
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
cmp dword [esp + 0x60], ebp
jb 0x100066c0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100378fa
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x98], ebp
jb 0x100066e9
mov edx, dword [esp + 0x84]
push edx
call fcn.100378fa
add esp, 4
lea esi, [esp + 0x64]
mov byte [esp + 0x11c], 5
call fcn.1002565e
cmp dword [esp + 0xd0], edi
jb 0x1000672e
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xec], edi
jb 0x10006887
mov ebp, dword [esp + 0xd8]
mov eax, 0x100580c0
mov edi, 0x100580e4
jmp 0x1000674b
lea ecx, [esp + 0xbc]
mov dword [esp + 0x1c], ecx
jmp 0x1000670e
mov dword [esp + 0x1c], ebx
xor ebp, ebp
mov eax, 0x10057ba0
mov edi, 0x100580f0
xor edx, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
mov byte [esp + 0x11c], 0x14
cmp dword [esp + 0xb4], 8
mov esi, dword [esp + 0xa0]
jae 0x1000677e
lea esi, [esp + 0xa0]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp byte [esp + 0x1b], bl
sete cl
push ecx
push eax
push esi
push edi
mov ecx, ebp
call fcn.10002980
mov esi, 8
add esp, 0x10
mov byte [esp + 0x11c], 5
cmp dword [esp + 0x38], esi
jb 0x100067b9
mov edx, dword [esp + 0x24]
push edx
call fcn.100378fa
add esp, 4
mov eax, 0x100580fc
cmp byte [esp + 0x1b], bl
jne 0x100067c9
mov eax, 0x100580e4
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.10005930
add esp, 8
cmp dword [esp + 0xd0], esi
jb 0x100067f0
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.100378fa
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], dx
cmp dword [esp + 0xec], esi
jb 0x10006826
mov eax, dword [esp + 0xd8]
push eax
call fcn.100378fa
add esp, 4
xor ecx, ecx
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], cx
cmp dword [esp + 0xb4], esi
jb 0x10006857
mov edx, dword [esp + 0xa0]
push edx
call fcn.100378fa
add esp, 4
xor eax, eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], ax
cmp dword [esp + 0x108], esi
jb 0x100068aa
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.100378fa
jmp 0x100068a7
lea ebp, [esp + 0xd8]
mov eax, 0x100580c0
mov edi, 0x100580e4
jmp 0x1000674b
push str.gb0RSbpS
call fcn.10020ca3
add esp, 4
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.100370e4
add esp, 0x10c
ret