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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x55a3d0]
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 dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x564e40], ebx
jne 0x423659
push 0x24
call fcn.004b5bb8
mov esi, eax
add esp, 4
mov dword [ebp - 0x90], esi
cmp esi, ebx
je 0x4235bf
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 2
push esi
mov byte [esi + 0x20], 1
call fcn.004231e0
jmp 0x4235c1
xor esi, esi
lea eax, [ebp - 0x98]
push eax
mov edi, esi
mov byte [ebp - 4], 0
call fcn.00423dc0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov esi, dword [0x564e44]
mov dword [0x564e40], ecx
mov dword [0x564e44], edx
cmp esi, ebx
je 0x423621
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x423621
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423621
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x94]
cmp esi, ebx
je 0x423659
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x423659
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423659
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [0x564e40]
cmp edx, ebx
setne al
test al, al
jne 0x42369a
xor ecx, ecx
push 0xf
mov word [ebp - 0x4c], cx
push str.Incorrect_state
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
call fcn.004125c0
push 0x7c
mov ecx, str.srcNSLogWrapper.cpp
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00429bf0
lea esi, [ebp - 0x30]
call fcn.0041f860
mov byte [ebp - 4], 5
cmp dword [ebp - 0x20], ebx
setne al
test al, al
jne 0x4236e2
push 0xf
xor edx, edx
push str.Incorrect_state
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
call fcn.004125c0
push 0x7f
mov ecx, str.srcNSLogWrapper.cpp
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00429bf0
mov eax, dword [0x564e40]
mov eax, dword [eax + 0x1c]
push eax
call fcn.00423ce0
mov eax, dword [ebp - 0x30]
mov ebx, 8
add esp, 4
cmp dword [ebp - 0x1c], ebx
jae 0x423703
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42375c
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x42371a
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x70]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42375c
mov eax, dword [ebp - 0x50]
xor ecx, ecx
xor esi, esi
add eax, ecx
adc esi, dword [ebp - 0x54]
mov dword [ebp - 0x94], esi
js 0x42375c
jg 0x423748
cmp eax, 0x200000
jb 0x42375c
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x423753
lea eax, [ebp - 0x30]
push 0x40
push 0x51346c
jmp 0x42376e
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x423767
lea eax, [ebp - 0x30]
push 0x40
push 0x513470
push eax
call fcn.004b837b
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4237b2
push 0xf
xor edx, edx
push str.Incorrect_state
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x4c], dx
call fcn.004125c0
push 0x8c
mov ecx, str.srcNSLogWrapper.cpp
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00429bf0
push ebx
call fcn.004b5bb8
mov esi, eax
add esp, 4
test esi, esi
je 0x4237f4
mov dword [esi], vtable.GFE::FileTraceHandler.0
mov dword [esi + 4], edi
mov edi, dword [0x564e3c]
mov eax, dword [edi]
push eax
mov dword [ebp - 0x90], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [ebp - 4], bl
call fcn.0046c12a
mov ecx, dword [edi]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1c], ebx
jb 0x423805
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b5907
add esp, 4
mov al, 1
jmp 0x423890
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.004b58f8
mov esp, ebp
pop ebp
ret