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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0xb4]
add ebx, 0xac
cmp dword [ebx + 4], esi
mov dword [esp + 0x20], ebx
jbe 0x4d6b18
call fcn.00510270
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x4d6b25
call fcn.00510270
push esi
push ebx
push edi
push ebx
lea eax, [esp + 0x34]
push eax
call fcn.00423420
call fcn.004f4f7c
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4d6b4f
push 0x80004005
call fcn.00405130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], ebx
push 5
push str.dicts
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.004029f0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
call fcn.004037a0
mov edi, 8
mov byte [esp + 0x70], 2
cmp dword [eax + 0x18], edi
jb 0x4d6baa
mov edx, dword [eax + 4]
jmp 0x4d6bad
lea edx, [eax + 4]
cmp edx, ebx
jne 0x4d6bb5
xor eax, eax
jmp 0x4d6bcf
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d6bc0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00417850
cmp dword [esp + 0x44], edi
jb 0x4d6bed
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004e946d
add esp, 4
mov byte [esp + 0x70], bl
cmp dword [esp + 0x60], edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x4d6c15
mov edx, dword [esp + 0x4c]
push edx
call fcn.004e946d
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d6e3f
push 1
push 0x5664c4
lea ecx, [esp + 0x1c]
call fcn.00417710
lea ecx, [esp + 0x2c]
call fcn.00501b29
push str..dic
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x7c], 3
call fcn.00416e10
add esp, 0xc
mov byte [esp + 0x70], 4
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00501bb7
mov esi, eax
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d6c97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004f4f7c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4d6cb1
push 0x80004005
call fcn.00405130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
cmp esi, ebx
mov byte [esp + 0x70], 5
je 0x4d6e11
mov edi, edi
lea ecx, [esp + 0x2c]
call fcn.005018d1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00501e47
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 6
call fcn.00417910
mov byte [esp + 0x70], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d6d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
push 0x2e
push edi
call fcn.00512b7c
add esp, 8
cmp eax, ebx
jne 0x4d6d37
or eax, 0xffffffff
jmp 0x4d6d3b
sub eax, edi
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00416f10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 7
call fcn.00417910
mov byte [esp + 0x70], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d6d7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
jle 0x4d6d99
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.004164f0
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d6db0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.004029f0
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x74], 8
call fcn.004064c0
mov byte [esp + 0x70], 5
cmp dword [esp + 0x60], 8
jb 0x4d6df6
mov eax, dword [esp + 0x4c]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jne 0x4d6cd0
lea eax, [edi - 0x10]
mov byte [esp + 0x70], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d6e32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], bl
call fcn.00501b4f
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d6e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret