Function at 0x1023286
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x7c
push 0x1002e08
call fcn.01032098
mov eax, dword [0x103ff58]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x88], edx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], ecx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 1
mov dword [eax], ebx
mov dword [ecx], ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10232de
xor eax, eax
jmp 0x102349b
push 0x104033c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x104032c]
test ebx, ebx
je 0x1023466
mov eax, dword [0x1040328]
imul eax, eax, 0x58
push eax
call fcn.01035a36
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1023516
push 0x1002e80
push dword [ebp - 0x88]
push dword [edi + 4]
call fcn.010228fa
cmp eax, 1
jl 0x1023516
cmp ebx, 0x104032c
je 0x1023466
add ebx, 0xfffffff8
mov dword [ebp - 0x80], ebx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x68], eax
and dword [edi + 0x3c], 0
and dword [edi + 0x40], 0
lea eax, [esi + 0x5cc]
mov dword [ebp - 0x6c], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x5c4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1023370
cmp ecx, eax
jne 0x10234ae
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x58
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x74], eax
lea ecx, [eax + 0x50]
mov dword [ebp - 0x5c], ecx
mov dword [ecx], edx
add eax, 0x54
mov dword [ebp - 0x60], eax
mov dword [eax], edx
push eax
push ecx
push edi
call dword [ebx + 0x30]
test eax, eax
jne 0x102353f
and word [ebp - 0x44], ax
push 9
pop ecx
lea edi, [ebp - 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [esi + 0xc]
push dword [esi + 8]
push 0x1002114
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [esi + 0x5e8]
push dword [ebx + 0x28]
mov ecx, dword [ebx + 0x34]
add ecx, 0x28
push ecx
push dword [esi + 0x34]
push dword [eax + 0x20]
push dword [eax + 0x34]
lea eax, [ebp - 0x44]
push eax
push 0xc0007d59
push 6
push 1
push 3
call sub.FXSEVENT.dll_FaxLog
add esp, 0x38
push 0x27
push dword [ebp - 0x74]
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov edi, dword [ebp - 0x60]
mov eax, dword [edi]
test eax, eax
je 0x1023525
mov esi, dword [ebp - 0x5c]
mov ecx, dword [esi]
mov dword [ebp - 0x70], ecx
push eax
call fcn.01035a36
mov dword [esi], eax
test eax, eax
je 0x102345e
mov ecx, dword [edi]
mov esi, dword [ebp - 0x70]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x70]
push 0
mov eax, dword [ebx + 0x34]
push dword [eax + 0x640]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x102351f
and dword [ebp - 0x50], 0
or dword [ebp - 4], 0xffffffff
push 0x104033c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
cmp dword [ebp - 0x4c], esi
je 0x1023488
cmp dword [ebp - 0x48], esi
jne 0x1023488
push dword [ebp - 0x4c]
call fcn.01035abf
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
call fcn.01031d91
call fcn.010320d3
ret 0x14
mov ecx, dword [ebp - 0x64]
mov edi, ecx
mov dword [ebp - 0x84], edi
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
cmp dword [edi + 0x10], ebx
jne 0x10234fa
push dword [edi + 0xc]
call fcn.01035a36
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x3c], eax
test eax, eax
je 0x102350d
mov ecx, dword [edi + 0xc]
mov esi, dword [edi + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x40], eax
mov esi, dword [ebp - 0x58]
lea eax, [esi + 0x5c4]
cmp dword [ebp - 0x64], eax
jne 0x10234ab
mov edi, dword [ebp - 0x54]
jmp 0x1023370
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x50], 0
jmp 0x1023466
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x60]
xor eax, eax
cmp dword [edi], eax
je 0x1023532
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx], eax
jne 0x1023539
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov dword [edi], eax
inc dword [ebp - 0x48]
mov edi, dword [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x68]
jmp 0x102332c