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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdedd
mov eax, dword fs:[0]
push eax
sub esp, 0x970
mov eax, dword [0x57b070]
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 ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
test edi, edi
jne 0x4da383
mov eax, 4
jmp 0x4da6e7
mov eax, dword [edi + 0x20]
cmp eax, 3
jne 0x4da390
jmp 0x4da6e7
cmp eax, 6
jne 0x4da39c
xor eax, eax
jmp 0x4da6e7
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4da3a6
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4da3bb
shr eax, 4
not al
and al, 1
jne 0x4da395
cmp dword [edi + 0x24], 1
je 0x4da379
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 1
cmp dword [edi + 0x40], eax
je 0x4da652
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
lea edx, [ebp - 0x44]
call fcn.004da8f0
add esp, 4
test al, al
je 0x4da652
test dword [edi + 0x40], 0x100
je 0x4da5dd
lea ecx, [ebp - 0x68]
call fcn.004cfc40
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 1
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004cf8a0
test al, al
je 0x4da561
push 0x582708
lea ecx, [ebp - 0x68]
call fcn.004cf040
push eax
call fcn.004a3e58
mov esi, eax
add esp, 8
mov dword [ebp - 0x974], esi
test esi, esi
jne 0x4da46a
lea esi, [eax + 4]
jmp 0x4da5c9
lea eax, [ebp - 0x978]
mov dword [ebp - 0x978], 0
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x96d], 0
call fcn.004cf040
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.004cf560
test al, al
je 0x4da4c0
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x68]
mov esi, dword [eax]
call fcn.004cf040
mov ecx, dword [edi + 0x18]
push eax
push dword [ebp - 0x974]
mov eax, dword [esi + 0xc]
call eax
mov esi, dword [ebp - 0x974]
mov byte [ebp - 0x96d], al
push esi
call fcn.004a3611
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.004cf770
cmp byte [ebp - 0x96d], 0
jne 0x4da543
mov eax, dword [edi + 0x24]
cmp eax, 3
je 0x4da4eb
cmp eax, 4
jne 0x4da5c4
cmp dword [0x57e5a8], 8
lea ecx, [ebp - 0x2c]
mov eax, 0x57e594
cmovae eax, dword [0x57e594]
push eax
call fcn.004d4d30
lea eax, [edi + 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d4960
lea ecx, [ebp - 0x2c]
call fcn.004d08b0
lea ecx, [ebp - 0x2c]
test al, al
je 0x4da5bf
mov edx, ebx
call fcn.004d0500
lea ecx, [ebp - 0x2c]
call fcn.00418a00
mov esi, 2
jmp 0x4da5c9
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xb
call fcn.004cf770
lea ecx, [ebp - 0x64]
call fcn.00418a00
mov esi, 1
jmp 0x4da6d5
mov eax, dword [edi + 0x24]
cmp eax, 3
je 0x4da56e
cmp eax, 4
jne 0x4da5c4
cmp dword [0x57e5a8], 8
lea ecx, [ebp - 0x2c]
mov eax, 0x57e594
cmovae eax, dword [0x57e594]
push eax
call fcn.004d4d30
lea eax, [edi + 0x28]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d4960
lea ecx, [ebp - 0x2c]
call fcn.004d08b0
lea ecx, [ebp - 0x2c]
test al, al
je 0x4da5bf
mov edx, ebx
call fcn.004d0500
lea ecx, [ebp - 0x2c]
call fcn.00418a00
mov esi, 2
jmp 0x4da5c9
call fcn.00418a00
mov esi, 3
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.004cf770
lea ecx, [ebp - 0x64]
jmp 0x4da6d0
mov edx, str.UsrDict
mov ecx, edi
call fcn.00444420
test al, al
je 0x4da63e
call fcn.004df100
push 0x649
push str.t_dictManager::EnsureDict
push str.__S_L:_d__
call fcn.004df180
add esp, 0xc
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push str.begin_to_restore_usrdict:_s_r_n
call fcn.004df180
add esp, 8
lea ecx, [ebp - 0x96c]
call fcn.004ee740
inc dword [ebp - 0x954]
lea ecx, [ebp - 0x96c]
call fcn.004ed310
mov edx, ebx
lea ecx, [ebp - 0x44]
call fcn.004d0500
mov esi, 1
jmp 0x4da6d5
cmp dword [0x57e5a8], 8
lea ecx, [ebp - 0x2c]
mov eax, 0x57e594
cmovae eax, dword [0x57e594]
push eax
call fcn.004d4d30
lea eax, [edi + 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d4960
mov eax, dword [edi + 0x24]
cmp eax, 3
je 0x4da6ab
cmp eax, 4
je 0x4da6ab
cmp eax, 2
jne 0x4da6c8
lea ecx, [ebp - 0x2c]
call fcn.004d08b0
test al, al
je 0x4da6c8
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004d4aa0
xor esi, esi
jmp 0x4da6cd
lea ecx, [ebp - 0x2c]
call fcn.004d08b0
test al, al
je 0x4da6c8
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.004d0500
mov esi, 2
jmp 0x4da6cd
mov esi, 3
lea ecx, [ebp - 0x2c]
call fcn.00418a00
lea ecx, [ebp - 0x80]
call fcn.00418a00
lea ecx, [ebp - 0x44]
call fcn.00418a00
mov eax, esi
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.004a35cb
mov esp, ebp
pop ebp
ret