Function at 0x40ea70
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e4
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 0xd8], 3
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c8], ebx
mov dword [ebp - 0x5dc], edi
jne 0x40ee62
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004146f0
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4304e4
call eax
push 0
push 0
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x5d8], eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov esi, eax
push esi
lea ecx, [ebp - 0x108]
push 0x429ad0
push ecx
mov dword [ebp - 0x5e0], esi
call fcn.00414004
add esp, 0xc
test esi, esi
je 0x40ee30
mov dword [ebp - 0x5d4], 0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x30e]
push eax
mov word [ebp - 0x310], dx
call fcn.004146f0
push 0x208
call fcn.00414f98
push 0x104
mov esi, eax
push 0
push esi
call fcn.004146f0
mov ecx, dword [ebp - 0x5d4]
add esp, 0x1c
push 0x104
push esi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea edx, [ebp - 0x310]
push edx
push 0
push 0
push 0
push esi
call fcn.0041670d
add esp, 0x14
mov ecx, str..lnk
lea eax, [ebp - 0x310]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40eba6
test dx, dx
je 0x40eba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40eba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40eb80
xor eax, eax
jmp 0x40ebab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ebca
push esi
mov ecx, ebx
call fcn.0040bcc0
mov ebx, eax
push esi
mov dword [ebp - 0x5d0], ebx
call fcn.00414f8d
add esp, 4
jmp 0x40ebd2
mov dword [ebp - 0x5d0], esi
mov ebx, esi
mov esi, dword [0x43422c]
mov edi, dword [esi]
cmp edi, esi
je 0x40ec20
mov edi, edi
mov eax, dword [edi + 8]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ec0b
test dx, dx
je 0x40ec07
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ec0b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ebe5
xor eax, eax
jmp 0x40ec10
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ee75
mov edi, dword [edi]
cmp edi, esi
jne 0x40ebe0
mov edi, dword [esi]
mov eax, dword [0x432118]
mov dword [ebp - 0x5cc], ebx
mov esi, edi
test eax, eax
jle 0x40ec36
dec eax
mov esi, dword [esi]
jne 0x40ec31
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x5cc]
push eax
push ecx
push esi
mov ecx, 0x43422c
call fcn.004122a0
mov edx, 0x3ffffffe
sub edx, dword [0x434230]
cmp edx, 1
jb 0x40ee8a
inc dword [0x434230]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push pe_nt_image_headers32
push 0x2b4
mov dword [ecx], eax
lea eax, [ebp - 0x5c4]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [ebp - 0x5c8]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1bc]
push 1
push eax
lea eax, [ebp - 0x5e4]
push eax
call edx
mov ecx, dword [eax]
mov esi, dword [0x434228]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ed0d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ecfe
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ecfe
push eax
call fcn.00402420
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40eced
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [0x434228], ebx
mov ebx, dword [ebp - 0x5d0]
jmp 0x40ed0d
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x434228
call fcn.004027a0
mov eax, dword [ebp - 0x5e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x4304e4
mov edi, esp
call eax
add eax, 0x10
mov dword [edi], eax
test ebx, ebx
je 0x40ed70
test ebx, 0xffff0000
jne 0x40ed74
movzx esi, bx
push 0
push esi
call fcn.004022c0
add esp, 8
test eax, eax
je 0x40ed98
push esi
push eax
mov ecx, edi
call fcn.00402700
jmp 0x40ed98
xor eax, eax
jmp 0x40ed8f
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed80
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, edi
call fcn.004027a0
mov esi, dword [0x434228]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x40edc7
cmp eax, dword [esi - 0x10]
jne 0x40edc7
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40edfb
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40ee94
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00414626
add esp, 0x10
mov ecx, dword [ebp - 0x5c8]
add edi, 0x10
mov dword [ebx], edi
call fcn.0040d130
mov eax, dword [ebp - 0x5d4]
mov edi, dword [ebp - 0x5dc]
mov ebx, dword [ebp - 0x5c8]
inc eax
mov dword [ebp - 0x5d4], eax
cmp eax, dword [ebp - 0x5e0]
jb 0x40eb13
push 1
push 0
lea ecx, [ebx + 0x40]
call fcn.004121e0
push edi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [ebp - 0x5d8]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138ed
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x5d8]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40ee56
push 0x427a50
call fcn.00424cfc
call fcn.00402410
int3