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

Disassembly:
mov edx, dword [0x4768a8]
mov eax, dword [0x4768a4]
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
xor esi, esi
test eax, eax
je 0x40df34
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x40df34
cmp dword [eax + esi*4], 0
je 0x40df2f
add edi, 1
mov ebx, esi
add esi, 1
jmp 0x40df15
cmp edi, 1
mov ebp, dword [sym.imp.USER32.dll_GetMenu]
jne 0x40dfaa
test eax, eax
je 0x40df4c
sub edx, eax
sar edx, 2
cmp ebx, edx
jb 0x40df56
call fcn.0043fcd0
mov eax, dword [0x4768a4]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0x20]
push 3
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00417636
mov ecx, eax
call fcn.00413cd0
mov esi, dword [0x4767c4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40e1c5
cmp eax, dword [esi]
jne 0x40e1c5
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40e1fd
jle 0x40df72
mov ebx, dword [sym.imp.USER32.dll_GetParent]
or edi, 0xffffffff
xor esi, esi
test eax, eax
je 0x40e019
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x40e019
cmp dword [eax + esi*4], 0
je 0x40e014
cmp edi, 0xffffffff
jne 0x40dfd3
mov edi, esi
test eax, eax
je 0x40dfe0
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x40dfea
call fcn.0043fcd0
mov eax, dword [0x4768a4]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0x20]
push 0
push 0x40000
push 0
push ecx
call ebx
push eax
call fcn.00417636
mov ecx, eax
call fcn.00413bbf
mov edx, dword [0x4768a8]
mov eax, dword [0x4768a4]
add esi, 1
jmp 0x40dfb7
test edi, edi
jl 0x40e04d
test eax, eax
je 0x40e02a
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x40e034
call fcn.0043fcd0
mov eax, dword [0x4768a4]
mov eax, dword [eax + edi*4]
mov edx, dword [eax + 0x20]
push edx
call ebx
push eax
call fcn.00417636
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
cmp byte [esp + 0x18], 0
push 0
je 0x40e0ce
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0xd4]
push 1
push 0x226
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [edi + 0x1a8], 0
jne 0x40e14f
mov edx, dword [edi + 0x20]
push edx
call ebp
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0043155e
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push 0xe133
push ecx
call esi
mov edx, dword [edi + 0x20]
push edx
call ebp
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0043155e
push 0
jmp 0x40e144
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0xd4]
push 0
push 0x226
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0x1a8], 0
jne 0x40e14f
mov eax, esi
mov ecx, dword [eax + 0x20]
push ecx
call ebp
push eax
call fcn.0043155e
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push 0
push edx
call edi
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0xe133
push eax
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x20]
push edx
call ebp
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
push 0
push eax
call edi
push eax
call fcn.0043155e
push 8
mov ecx, dword [eax + 4]
push 0xe134
push ecx
call esi
mov edx, dword [0x4768a8]
mov ecx, dword [0x4768a4]
xor esi, esi
lea ecx, [ecx]
test ecx, ecx
je 0x40df72
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x40df72
cmp dword [ecx + esi*4], 0
je 0x40e1c0
test ecx, ecx
je 0x40e18a
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x40e195
call fcn.0043fcd0
mov ecx, dword [0x4768a4]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 0x20]
push 0
push 0
push 0x40000
push edx
call ebx
push eax
call fcn.00417636
mov ecx, eax
call fcn.00413bbf
mov edx, dword [0x4768a8]
mov ecx, dword [0x4768a4]
add esi, 1
jmp 0x40e160
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40e1de
call fcn.00402560
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0043e977
add esp, 0x10
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [esi - 0x10]
jne 0x40e29a
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e22c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x1a8], 0
jne 0x40e293
mov ecx, dword [edi + 0x20]
push ecx
call ebp
push eax
call fcn.0043155e
mov edx, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push 0
push edx
call ebx
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0x8007
push eax
call esi
mov ecx, dword [edi + 0x20]
push ecx
call ebp
push eax
call fcn.0043155e
mov edx, dword [eax + 4]
push 1
push edx
call ebx
push eax
call fcn.0043155e
mov eax, dword [eax + 4]
push 0
push 0x8007
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
pop ebx
ret 8