Function at 0x4a3d50
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52aca8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x2c]
mov ax, word [esi]
cmp ax, 0x20
jne 0x4a3d89
test ax, ax
je 0x4a3d89
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x20
je 0x4a3d77
mov al, byte [esp + 0x30]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call fcn.0040d630
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
push ecx
push esi
call fcn.004a4200
add esp, 8
test eax, eax
je 0x4a3fd9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a3fd9
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x4a3dd0
mov esi, 0x535104
push ebp
xor ebp, ebp
cmp word [esi], 0x22
push edi
mov dword [esp + 0x34], ebx
jne 0x4a3e4f
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
add esi, 2
push 0x22
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x4a3f24
push 0x5c
push esi
mov word [eax], bx
lea ebp, [eax + 2]
call edi
add esp, 8
test eax, eax
je 0x4a3eae
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, dword [esp + 0x3c]
add esp, 4
mov edi, eax
mov ecx, ebx
push 1
push edi
call fcn.0040ff60
test al, al
je 0x4a3e45
mov eax, dword [ebx + 4]
push edi
push esi
push eax
call fcn.0040db00
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], edi
add esp, 0xc
mov word [ecx + edi*2], 0
mov dword [esp + 0x34], 1
jmp 0x4a3ec4
lea edi, [esi + eax*2]
mov dword [esp + 0x10], ebx
cmp edi, esi
jb 0x4a3ea5
jmp 0x4a3e60
mov eax, dword [esp + 0x1c]
lea edx, [esi + eax*2]
cmp edi, edx
sete bl
cmp word [edi], 0x20
je 0x4a3e72
test bl, bl
je 0x4a3e9e
test bl, bl
mov dword [esp + 0x10], edi
je 0x4a3e7e
mov ebp, edi
jmp 0x4a3e86
lea ebp, [edi + 2]
mov word [edi], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a3f57
test bl, bl
jne 0x4a3e9e
mov word [edi], 0x20
sub edi, 2
cmp edi, esi
jae 0x4a3e5c
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov word [ecx], bx
mov edx, dword [esp + 0x38]
push edx
push esi
call fcn.004a3af0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4a3f24
mov ax, word [ebp]
cmp ax, 0x20
jne 0x4a3ee0
test ax, ax
je 0x4a3ee0
mov ax, word [ebp + 2]
add ebp, 2
cmp ax, 0x20
je 0x4a3ece
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, dword [esp + 0x40]
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call fcn.0040ff60
test al, al
je 0x4a3f24
mov eax, dword [edi + 4]
mov ecx, ebp
test esi, esi
jbe 0x4a3f18
mov edx, esi
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x4a3f09
mov eax, dword [edi + 4]
mov dword [edi + 8], esi
mov word [eax + esi*2], 0
mov ecx, dword [esp + 0x18]
pop edi
test ecx, ecx
pop ebp
je 0x4a3fc4
mov al, byte [ecx - 1]
test al, al
je 0x4a3fb8
cmp al, 0xff
je 0x4a3fb8
dec al
pop esi
mov byte [ecx - 1], al
mov eax, dword [esp + 0x28]
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x34], eax
je 0x4a3ea5
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, dword [esp + 0x3c]
add esp, 4
mov edi, eax
mov ecx, ebx
push 1
push edi
call fcn.0040ff60
test al, al
je 0x4a3ec4
mov eax, dword [ebx + 4]
test edi, edi
jbe 0x4a3fa7
mov ecx, edi
mov dx, word [esi]
add esi, 2
mov word [eax], dx
add eax, 2
dec ecx
jne 0x4a3f98
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edi
mov word [eax + edi*2], 0
jmp 0x4a3ec4
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040d630
mov ecx, dword [esp + 0x1c]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret