Function at 0x4322f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ecc8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4643c8]
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 eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x44]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x78], edx
mov edx, dword [ebp + 0x34]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 0
test esi, esi
je 0x43234d
mov byte [esi], 0
test edi, edi
jne 0x43236d
cmp dword [ebp + 0x1c], 8
jb 0x432363
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
mov eax, 0x57
jmp 0x432541
lea ebx, [ebp + 8]
call fcn.00431b80
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x432380
mov eax, ebx
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x78]
push edx
mov edx, dword [ebp - 0x6c]
push ebx
push ecx
mov ecx, dword [ebp - 0x70]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x43250a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp eax, 2
je 0x4323bd
cmp eax, 3
jne 0x432434
cmp byte [ebp + 0x38], 0
je 0x432434
cmp byte [ebp + 0x40], 0
mov dword [ebp - 0x68], 0
je 0x43252c
lea edx, [ebp - 0x64]
push str.File_
push edx
lea ebx, [ebp + 8]
mov esi, SysReAllocStringLen
call fcn.00407830
sub esp, 0x14
mov bl, 1
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x70], esp
push eax
mov eax, str._does_not_exist.
call fcn.00407910
sub esp, 0x18
mov eax, str.CreateFileAPIWrapper
mov ecx, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c], esp
call fcn.00413560
push 2
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00419f60
add esp, 0x3c
lea esi, [ebp - 0x64]
call fcn.0041c1b0
jmp 0x43252c
cmp byte [ebp + 0x3c], 0
je 0x43252c
mov edx, eax
lea ecx, [ebp - 0x64]
mov esi, SysReAllocStringLen
call fcn.00419240
mov edi, eax
lea eax, [ebp - 0x48]
push str.CreateFile_for_file_
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00407830
push eax
mov eax, str._returned:
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00407910
mov ecx, eax
sub esp, 0x10
mov byte [ebp - 4], 5
mov eax, edi
mov ebx, esp
mov dword [ebp - 0x70], esp
call fcn.004190d0
sub esp, 0x1c
mov eax, str.CreateFileAPIWrapper
mov ecx, esp
mov byte [ebp - 4], 6
mov dword [ebp - 0x6c], esp
call fcn.00413560
push 4
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00419f60
mov esi, 8
add esp, 0x3c
cmp dword [ebp - 0x18], esi
jb 0x4324c7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043644d
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x4324eb
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043644d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x43252c
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043644d
add esp, 4
jmp 0x43252c
mov dword [ebp - 0x68], 0
test esi, esi
je 0x43252c
cmp ebx, 2
je 0x432529
cmp ebx, 4
jne 0x43252c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43252c
mov byte [esi], 1
cmp dword [ebp + 0x1c], 8
jb 0x43253e
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
mov eax, dword [ebp - 0x68]
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.00436268
mov esp, ebp
pop ebp
ret